ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Log.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Log.pm (file contents):
Revision 1.13 by root, Sat Aug 20 01:34:12 2011 UTC vs.
Revision 1.14 by root, Sat Aug 20 01:49:27 2011 UTC

57The design goal behind this module was to keep it simple (and small), 57The design goal behind this module was to keep it simple (and small),
58but make it powerful enough to be potentially useful for any module, and 58but make it powerful enough to be potentially useful for any module, and
59extensive enough for the most common tasks, such as logging to multiple 59extensive enough for the most common tasks, such as logging to multiple
60targets, or being able to log into a database. 60targets, or being able to log into a database.
61 61
62The amount of documentation might indicate otherwise, but the module is
63still just 240 lines or so.
64
62=head1 LOGGING FUNCTIONS 65=head1 LOGGING FUNCTIONS
63 66
64These functions allow you to log messages. They always use the caller's 67These functions allow you to log messages. They always use the caller's
65package as a "logging module/source". Also, the main logging function is 68package as a "logging module/source". Also, the main logging function is
66callable as C<AnyEvent::log> or C<AE::log> when the C<AnyEvent> module is 69callable as C<AnyEvent::log> or C<AE::log> when the C<AnyEvent> module is
75use Carp (); 78use Carp ();
76use POSIX (); 79use POSIX ();
77 80
78use AnyEvent (); BEGIN { AnyEvent::common_sense } 81use AnyEvent (); BEGIN { AnyEvent::common_sense }
79use AnyEvent::Util (); 82use AnyEvent::Util ();
83
84our $VERSION = $AnyEvent::VERSION;
80 85
81our ($now_int, $now_str1, $now_str2); 86our ($now_int, $now_str1, $now_str2);
82 87
83# Format Time, not public - yet? 88# Format Time, not public - yet?
84sub ft($) { 89sub ft($) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines