logger::appender(3tcl)
πΈ logger::appender π
okay bestie, you found the logger::appender page β it's part of the tcllib docs, and it's the object oriented logging facility's little box of pre-made appenders. it's giving "here are your templates, go log stuff." π
β¨ NAME β¨
logger::appender β a whole collection of predefined appenders for logger. no cap, that's literally the job. π¦
β¨ 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...?
like, you gotta have Tcl 8.5 through 9, and you gotta require the package (version 1.4 is optional-ish, the ?1.4? situation π). then you call one of the two appenders, which are iconic and colored respectively. β¨
β¨ DESCRIPTION β¨
so this package provides a predefined set of logger templates. that's it, that's the vibe. here's the cast:
π ::logger::appender::console -level level -service service ?options...?
the classic. no frills, just console. here's what you can pass it:
-levellevel β the name of the level to fill in as "priority" in the log procedure. so like, which level is this thing repping. π-serviceservice β the name of the service to fill in as "category" in the log procedure. yes it's a category, yes we're calling it a service, that's just how it is bestie. π«Ά-appenderArgsappenderArgs β any additional arguments for the log procedure, and they gotta be in list form. fr fr, list form. π-conversionPatternconversionPattern β the log pattern to use. (peeplogger::utils::createLogProcfor the allowed substitutions β that's where the receipts live π)-procNameprocName β explicitly set the name of the created procedure. you're the main character, you name it. π-procNameVarprocNameVar β name of the variable to set in the calling context. this variable will contain the name of the procedure. so it hands you the name back, cute. π
π ::logger::appender::colorConsole -level level -service service ?options...?
the same but in color, obviously. β¨
see ::logger::appender::colorConsole for a description of the applicable options.
okay yes, that's what the original says β it points you at itself. it's a whole ouroboros moment π not me adding anything, just keeping it 100.
π«Ά BUGS, IDEAS, FEEDBACK π«Ά
this document, and the package it describes, will undoubtedly contain bugs and other problems. not being dramatic, that's just the quote. π
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. we want the thoughts. all of them. π§
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. periodt. π
β¨ KEYWORDS β¨
appender, logger
β¨ CATEGORY β¨
Programming tools
β¨ COPYRIGHT β¨
Copyright (c) 2005 Aamer Akhter <aakhter@cisco.com>
and that's the whole page bestie!! ππ this was tcllib, version 1.4, serving you logger::appender(3tcl) realness. go forth and log, you absolute icon. πβ¨π¦
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- Copyright (c) 2005 Aamer Akhter <aakhter@cisco\&.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms