Text::UberText::Log - Record of UberText processing


ubertext documentation  | view source Contained in the ubertext distribution.

Index


NAME

Top

Text::UberText::Log - Record of UberText processing

SYNOPSIS

Top

 $uber=Text::UberText->new();
 $log=$uber->log();
 $log->write("Dispatch","Object load failure",,"ERROR");
 $log->list();

DESCRIPTION

Top

Text::UberText::Log is used to debug the parsing of UberText documents. The Parser, the Dispatch table, and other modules record informational or warning messages to the log.

OBJECT METHODS

Top

$log->write($module,$message,$linenumber,$severity)

Writes a message to the log object. Module generically refers to which UberText module is reporting the error, but it can also be more generic or specific to suit the needs of the implementor. Message is a verbose description of the event. Linenumber indicates at what line of the document the error occured (if it occured during parsing). Severity refers to the level of importance of the message, and could be set to either "DEBUG", "INFO", or "ERROR".

$log->list($severity)

Lists all log messages matching the severity level specified, or lists all messages if no severity level is specified.

BUGS/CAVEATS

Top

This is the simplest module in the UberText distribution.

AUTHOR

Top

Chris Josephes <cpj1@visi.com>

SEE ALSO

Top

Text::UberText

COPYRIGHT

Top


ubertext documentation  | view source Contained in the ubertext distribution.