MIME::Tools::IndentingLogger - wrap a logger in an indenting mechanism
### Create the logger:
$backend_logger = ...;
$logger = MIME::Tools::IndentingLogger->new($backend_logger);
### Change indentation level:
$logger->level(+1);
### Log messages of various types (indents, then relays to backend):
$logger->debug("about to open config file");
$logger->warning("missing config file: must create");
$logger->error("unable to create config file");
This is useful in Parsing complex MIME entities: the logged messages can be indented based on how deeply they are nested in the entity.
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |