summaryrefslogtreecommitdiff
path: root/eg/log4j-manual-3.conf
diff options
context:
space:
mode:
Diffstat (limited to 'eg/log4j-manual-3.conf')
-rw-r--r--eg/log4j-manual-3.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/eg/log4j-manual-3.conf b/eg/log4j-manual-3.conf
new file mode 100644
index 0000000..12556d0
--- /dev/null
+++ b/eg/log4j-manual-3.conf
@@ -0,0 +1,14 @@
+# Derived from the Log4j manual at
+# http://jakarta.apache.org/log4j/docs/manual.html
+
+log4j.rootLogger=DEBUG, stdout, R
+
+log4j.appender.stdout=Log::Log4perl::Appender::TestBuffer
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+# Pattern to output the caller's file name and line number.
+log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
+
+log4j.appender.R=Log::Log4perl::Appender::TestBuffer
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%p %t '%c' - %m%n