Home › Object Oriented logging facility tcllib
logger::appender
Collection of predefined appenders for logger
literal type exactly as shown
argument replace with your value
?optional? may be omitted
Synopsis#
package require Tcl 8.5 9
package require logger::appender ?1.4?
::logger::appender::console -level level -service service ?options...?
::logger::appender::colorConsole -level level -service service ?options...?
Description#
This package provides a predefined set of logger templates.
::logger::appender::console-levellevel-serviceservice ?options...?#-
-levellevel#-
Name of the level to fill in as "priority" in the log procedure.
-serviceservice#-
Name of the service to fill in as "category" in the log procedure.
-appenderArgsappenderArgs#-
Any additional arguments for the log procedure in list form
-conversionPatternconversionPattern#-
The log pattern to use (see
logger::utils::createLogProcfor the allowed substitutions). -procNameprocName#-
Explicitly set the name of the created procedure.
-procNameVarprocNameVar#-
Name of the variable to set in the calling context. This variable will contain the name of the procedure.
::logger::appender::colorConsole-levellevel-serviceservice ?options...?#-
See
::logger::appender::colorConsolefor a description of the applicable options.
Bugs, ideas, feedback#
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category logger of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation.
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.
Category#
Programming tools
Copyright#
Copyright (c) 2005 Aamer Akhter <aakhter@cisco.com>