… | |
… | |
71 | |
71 | |
72 | use AnyEvent::Log; |
72 | use AnyEvent::Log; |
73 | $AnyEvent::Log::FILTER->level ("info"); |
73 | $AnyEvent::Log::FILTER->level ("info"); |
74 | |
74 | |
75 | The design goal behind this module was to keep it simple (and small), |
75 | The design goal behind this module was to keep it simple (and small), |
76 | but make it powerful enough to be potentially useful for any module, and |
76 | but make it powerful enough to be potentially useful for any module, |
77 | extensive enough for the most common tasks, such as logging to multiple |
77 | and extensive enough for the most common tasks, such as logging to |
78 | targets, or being able to log into a database. |
78 | multiple targets, or being able to log into a database. |
79 | |
79 | |
80 | The module is also usable before AnyEvent itself is initialised, in which |
80 | The module is also usable before AnyEvent itself is initialised, in which |
81 | case some of the functionality might be reduced. |
81 | case some of the functionality might be reduced. |
82 | |
82 | |
83 | The amount of documentation might indicate otherwise, but the runtime part |
83 | The amount of documentation might indicate otherwise, but the runtime part |
… | |
… | |
1496 | assumes the log level for AnyEvent::Debug hasn't been changed from the |
1496 | assumes the log level for AnyEvent::Debug hasn't been changed from the |
1497 | default. |
1497 | default. |
1498 | |
1498 | |
1499 | =back |
1499 | =back |
1500 | |
1500 | |
|
|
1501 | =head1 ASYNCHRONOUS DISK I/O |
|
|
1502 | |
|
|
1503 | This module uses L<AnyEvent::IO> to actually write log messages (in |
|
|
1504 | C<log_to_file> and C<log_to_path>), so it doesn't block your program when |
|
|
1505 | the disk is busy and a non-blocking L<AnyEvent::IO> backend is available. |
|
|
1506 | |
1501 | =head1 AUTHOR |
1507 | =head1 AUTHOR |
1502 | |
1508 | |
1503 | Marc Lehmann <schmorp@schmorp.de> |
1509 | Marc Lehmann <schmorp@schmorp.de> |
1504 | http://anyevent.schmorp.de |
1510 | http://anyevent.schmorp.de |
1505 | |
1511 | |