logger::appender(n) Object Oriented logging facility logger::appender(n)


logger::appender - Collection of predefined appenders for logger

package require Tcl 8.2

package require logger::appender ?1.2?

::logger::appender::console -level level -service service ?options...?

::logger::appender::colorConsole -level level -service service ?options...?


This package provides a predefined set of logger templates.

::logger::appender::console -level level -service service ?options...?
Name of the level to fill in as "priority" in the log procedure.
Name of the service to fill in as "category" in the log procedure.
Any additional arguments for the log procedure in list form
The log pattern to use (see logger::utils::createLogProc for the allowed substitutions).
Explicitly set the name of the created procedure.
Name of the variable to set in the calling context. This variable will contain the name of the procedure.
::logger::appender::colorConsole -level level -service service ?options...?
See ::logger::appender::colorConsole for a description of the applicable options.

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category logger of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation.

appender, logger

Programming tools

Copyright (c) 2005 Aamer Akhter <aakhter@cisco.com>
1.2 log