Permalink
Browse files

added the sample log4erl.conf

  • Loading branch information...
1 parent 497b774 commit 3ee35e5dde7d59073f44e735f7a15023e7db4b9a @ahmednawras ahmednawras committed Mar 25, 2009
Showing with 47 additions and 3 deletions.
  1. +0 −1 priv/file_logger.conf
  2. +47 −0 priv/log4erl.conf
  3. +0 −1 priv/logger1.conf
  4. +0 −1 priv/logger2.conf
View
@@ -1 +0,0 @@
-{"logs", "flogger", {size, 10000}, 3, "txt", all, "%j %T [%L] %l%n"}.
View
@@ -0,0 +1,47 @@
+%% Default logger
+%% it includes a file appender and a console appender
+logger{
+ file_appender app2{
+ dir = ".",
+ level = info,
+ file = my_app,
+ type = size,
+ max = 100000,
+ suffix = log,
+ rotation = 5,
+ format = '[%L] %I %l%n'
+ }
+
+ console_appender app1{
+ level = warn,
+ format = '%T %j [%L] %l%n'
+ }
+}
+
+%% email logger
+logger email_logger{
+ smtp_appender app3{
+ level=all,
+ ip = "10.1.102.6",
+ %port = 25,
+ no_auth = true,
+ %username = user,
+ %password = pass,
+ from = "admin@log4erl.org",
+ to = "notification@log4erl.org",
+ title = "System info",
+ msg = "[%T %j] %L:%n%l%n"
+ }
+}
+
+%% A logger with 1 syslog appender
+logger syslog{
+ syslog_appender app4{
+ level = all,
+ facility = ftp,
+ host = "localhost",
+ port = 514,
+ format = "%l%n"
+ }
+}
+
View
@@ -1 +0,0 @@
-{"../logs", "logger1", {size, 1000000}, -3, "logs", all}.
View
@@ -1 +0,0 @@
-{"../logs","logger2", {size, 500000}, 2, "elog", all}.

0 comments on commit 3ee35e5

Please sign in to comment.