logger::utils(n) | Object Oriented logging facility | logger::utils(n) |
logger::utils - Utilities for logger
package require Tcl 8.4
package require logger::utils ?1.3?
::logger::utils::createFormatCmd formatString
::logger::utils::createLogProc -procName procName ?options...?
::logger::utils::applyAppender -appender appenderType ?options...?
::logger::utils::autoApplyAppender command command-string log op args...
This package adds template based appenders.
[%d] [%c] [%M] [%p] %mis used.
Example of usage:
% set log [logger::init testLog] ::logger::tree::testLog % logger::utils::applyAppender -appender console -serviceCmd $log % ${log}::error "this is an error" [2005/08/22 10:14:13] [testLog] [global] [error] this is an error
Example of usage:
logger::utils::applyAppender -appender console set log [logger::init applyAppender-3] ${log}::error "this is an error"
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.3 | log |