The following module was proposed for inclusion in the Module List:
modid: Log::Lite
DSLIP: Rdpfp
description: Log info in local file
userid: CHENGANG (陈钢)
chapterid: 3 (Development_Support)
communities:
http://blog.yikuyiku.com/
similar:
Log::Log4perl Log::Minimal
rationale:
DESCRIPTION Module Feature: 1. auto create file named by the first
argument. 2. support auto cut log file
everyday,everymonth,everyyear. 3. thread safety
(open-lock-write-unlock-close everytime). 4. support
log/debug/slient mode.
SYNOPSIS use Log::Lite qw(logrotate logmode logpath log); #
Optional methods logrotate("day"); #autocut logfile every day
(Default) logrotate("month"); #autocut logfile every month
logrotate("year"); #autocut logfile every year logrotate("no");
#disable autocut logmode("log"); #log in file (Default)
logmode("debug"); #output to STDERR logmode("slient"); #do nothing
logpath("/tmp/mylogpath"); #defined where log files stored
logpath("mylogpath"); #relative path is ok # Main method
log("access", "user1", "ip1", "script"); #log in
./log/access_20110206.log log("access", "user2", "ip2", "script");
#log in the same file as above log("debug", "some", "debug", "info",
"in", "code"); #log in ./log/debug_20110206.log log("error", "error
information"); # could accept any number of arguments
enteredby: CHENGANG (陈钢)
enteredon: Mon Apr 14 00:08:17 2014 UTC
The resulting entry would be:
Log::
::Lite Rdpfp Log info in local file CHENGANG
Thanks for registering,
--
The PAUSE
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=5ef00000_b2b1302e4f9e91d8&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=5ef00000_b2b1302e4f9e91d8&SUBMIT_pause99_add_mod_insertit=1
Peek at the current permissions:
https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=Log%3A%3ALite