NAME
Log::Lite - Log info in local file
SYNOPSIS
use Log::Lite qw(logpath log);
logpath("/tmp/mylogpath"); #defined where log files stored (Optional)
logpath("mylogpath"); #can use relative path (Optional)
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
DESCRIPTION
Module Feature:
1. auto create file named by the first argument.
2. auto cut log file everyday.
3. thread safety (open-lock-write-unlock-close everytime).
METHODS
logpath($path)
Optional. Defined logpath. "./log" by default.
log($type, $content1, $content2, $content3, ...)
Write information to file.
AUTHOR
Written by ChenGang, yikuyiku.com@gmail.com
COPYRIGHT
Copyright (c) 2011 ChenGang. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.