… | |
… | |
395 | By default, C<AnyEvent::Log> will use C<AE::now>, i.e. the cached |
395 | By default, C<AnyEvent::Log> will use C<AE::now>, i.e. the cached |
396 | eventloop time, for the log timestamps. After calling this function with a |
396 | eventloop time, for the log timestamps. After calling this function with a |
397 | true value it will instead resort to C<AE::time>, i.e. fetch the current |
397 | true value it will instead resort to C<AE::time>, i.e. fetch the current |
398 | time on each log message. This only makes a difference for event loops |
398 | time on each log message. This only makes a difference for event loops |
399 | that actually cache the time (such as L<EV> or L<AnyEvent::Loop>). |
399 | that actually cache the time (such as L<EV> or L<AnyEvent::Loop>). |
|
|
400 | |
|
|
401 | This setting can be changed at any time by calling this function. |
400 | |
402 | |
401 | Since C<AnyEvent::Log> has to work even before the L<AnyEvent> has been |
403 | Since C<AnyEvent::Log> has to work even before the L<AnyEvent> has been |
402 | initialised, this switch will also decide whether to use C<CORE::time> or |
404 | initialised, this switch will also decide whether to use C<CORE::time> or |
403 | C<Time::HiRes::time> when logging a message before L<AnyEvent> becomes |
405 | C<Time::HiRes::time> when logging a message before L<AnyEvent> becomes |
404 | available. |
406 | available. |