NAME

Log::Lite - log info in local file

SYNOPSIS

use Log::Lite qw(log);
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

This module helps log information on disk.

1. auto create a file named by the first argument when call the sub fisrt time.

2. auto cut log file everyday.

3. thread safety.

AUTHOR

Written by ChenGang, yikuyiku.com@gmail.com

http://blog.yikuyiku.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.

SEE ALSO

Log::Log4perl, Log::Minimal