]> iEval git - plack-app-gruntmaster.git/commitdiff
Move access log to a separate file
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 24 Feb 2015 19:56:31 +0000 (21:56 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 24 Feb 2015 19:56:31 +0000 (21:56 +0200)
log.conf

index dbde8c99849fd272e94c9eb7ee599934edcd195f..a0f2bdab500841236d09de84174d51898b901345 100644 (file)
--- a/log.conf
+++ b/log.conf
@@ -1,5 +1,11 @@
 log4perl.category. = TRACE, stderr
+log4perl.category.access = INFO, accesslog
 
 log4perl.appender.stderr                          = Log::Log4perl::Appender::Screen
 log4perl.appender.stderr.layout                   = Log::Log4perl::Layout::PatternLayout
 log4perl.appender.stderr.layout.ConversionPattern = [%d] [%F{1}:%M{1}:%L] [%p] %m%n
+
+log4perl.appender.accesslog                          = Log::Log4perl::Appender::File
+log4perl.appender.accesslog.filename                 = /var/log/accesslog
+log4perl.appender.accesslog.layout                   = Log::Log4perl::Layout::PatternLayout
+log4perl.appender.accesslog.layout.ConversionPattern = %m%n
This page took 0.017509 seconds and 4 git commands to generate.