The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

MIME::Tools::IndentingLogger (3)
  • >> MIME::Tools::IndentingLogger (3) ( Разные man: Библиотечные вызовы )
  •  

    NAME

    MIME::Tools::IndentingLogger - wrap a logger in an indenting mechanism
     
    

    SYNOPSIS

        ### 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");
    
    
     

    DESCRIPTION

    Wrap any logger in an object which will automatically indent the given messages before passing them on.

    This is useful in Parsing complex MIME entities: the logged messages can be indented based on how deeply they are nested in the entity.  

    PUBLIC INTERFACE

    new LOGGER
    Class method, constructor. Create a new logger around the given backend LOGGER.
    level [+1|-1]
    Instance method. Alter/get current parsing level.
    debug MESSAGE...
    warning MESSAGE...
    error MESSAGE...
    Instance methods, concrete overrides. Indent the given messages, then use the backend to log them.


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    PUBLIC INTERFACE


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру