[Jifty-commit] jifty branch, master, updated. 89418859e897f88d60c3dcb4562c1606a8c0ce19
Jifty commits
jifty-commit at lists.jifty.org
Tue Apr 20 16:22:08 EDT 2010
The branch, master has been updated
via 89418859e897f88d60c3dcb4562c1606a8c0ce19 (commit)
via 5c97e874c97b7f4d2b77daba1f0275f2a80044fc (commit)
via 99c8132efa4992ba96e56440331c78666b4c3c5e (commit)
from f0d1a8d106a6696e428ea43d627afeb363eabe55 (commit)
Summary of changes:
lib/Jifty/Manual.pm | 4 +++
lib/Jifty/Manual/Logging.pod | 50 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)
create mode 100644 lib/Jifty/Manual/Logging.pod
- Log -----------------------------------------------------------------
commit 99c8132efa4992ba96e56440331c78666b4c3c5e
Author: Yo-An Lin <cornelius.howl at gmail.com>
Date: Sat Apr 17 10:21:00 2010 +0800
Add pod for logging , draft
diff --git a/lib/Jifty/Manual/Logging.pod b/lib/Jifty/Manual/Logging.pod
new file mode 100644
index 0000000..4405a98
--- /dev/null
+++ b/lib/Jifty/Manual/Logging.pod
@@ -0,0 +1,50 @@
+=pod
+
+=encoding utf8
+
+=head1 NAME
+
+Jifty::Manual::Logging - ...
+
+=head1 Intro
+
+Jifty uses Log4perl module for logging messages, so you can define your own
+log4perl config for logging.
+
+you can define different behaviour for differnt log level. for example,
+send mail to administrator when error occured. or apply terminal color to
+different log level.
+
+=head1 Config from config.yml
+
+Log level stuff can be set from F<etc/config.yml> or F<etc/site_config.yml>.
+
+=head1 Example
+
+ # vim:filetype=conf:et:
+ log4perl.rootLogger = INFO , Screen
+ log4perl.logger.MyApp.MailNotifier = WARN, Mailer
+
+ log4perl.appender.LOG1 = Log::Log4perl::Appender::File
+ log4perl.appender.LOG1.filename = apache_fastcgi/logs/
+ log4perl.appender.LOG1.mode = append
+ log4perl.appender.LOG1.layout = Log::Log4perl::Layout::PatternLayout
+ log4perl.appender.LOG1.layout.ConversionPattern = %d %p %m %n
+
+ log4perl.appender.Mailer = Log::Dispatch::Email::MailSend
+ log4perl.appender.Mailer.to = admin at blah.com
+ log4perl.appender.Mailer.subject = !!ERROR!!
+ log4perl.appender.Mailer.layout = SimpleLayout
+
+ log4perl.filter.Filter1 = sub { /Plugin/ }
+ log4perl.filter.FilterRule = Log::Log4perl::Filter::Boolean
+ log4perl.filter.FilterRule.logic = Filter1
+ log4perl.appender.LOG1.Filter = FilterRule
+
+ log4perl.appender.ScreenColor = Log::Log4perl::Appender::ScreenColoredLevels
+ log4perl.appender.ScreenColor.layout = SimpleLayout
+
+ log4perl.appender.Screen = Log::Log4perl::Appender::Screen
+ log4perl.appender.Screen.layout = SimpleLayout
+
+=cut
commit 5c97e874c97b7f4d2b77daba1f0275f2a80044fc
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Apr 20 14:57:21 2010 -0400
Grammar fixes
diff --git a/lib/Jifty/Manual/Logging.pod b/lib/Jifty/Manual/Logging.pod
index 4405a98..ab093c7 100644
--- a/lib/Jifty/Manual/Logging.pod
+++ b/lib/Jifty/Manual/Logging.pod
@@ -8,16 +8,16 @@ Jifty::Manual::Logging - ...
=head1 Intro
-Jifty uses Log4perl module for logging messages, so you can define your own
+Jifty uses the Log4perl module for logging messages, so you can define your own
log4perl config for logging.
-you can define different behaviour for differnt log level. for example,
-send mail to administrator when error occured. or apply terminal color to
-different log level.
+You can define different behaviour for different log levels. For example,
+you can send mail to administrator when error occured, or add color to
+warning messages that are logged to the terminal.
=head1 Config from config.yml
-Log level stuff can be set from F<etc/config.yml> or F<etc/site_config.yml>.
+Various log level config can be set from F<etc/config.yml> or F<etc/site_config.yml>.
=head1 Example
commit 89418859e897f88d60c3dcb4562c1606a8c0ce19
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Apr 20 14:58:09 2010 -0400
More improvements
diff --git a/lib/Jifty/Manual.pm b/lib/Jifty/Manual.pm
index ad07504..a68ccdf 100644
--- a/lib/Jifty/Manual.pm
+++ b/lib/Jifty/Manual.pm
@@ -37,6 +37,10 @@ Frequently asked questions, for some value of frequent
Common terms that you might want to learn
+=item L<Jifty::Manual::Logging>
+
+How to control Jifty's logging, which is backed by L<Log::Log4perl>
+
=item L<Jifty::Manual::Models>
All about models -- the creepy crawlies that live in your database
diff --git a/lib/Jifty/Manual/Logging.pod b/lib/Jifty/Manual/Logging.pod
index ab093c7..af40d34 100644
--- a/lib/Jifty/Manual/Logging.pod
+++ b/lib/Jifty/Manual/Logging.pod
@@ -4,7 +4,7 @@
=head1 NAME
-Jifty::Manual::Logging - ...
+Jifty::Manual::Logging - Using and controlling Jifty's logging system
=head1 Intro
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list