logger::appender(3tcl)

πŸ“¦
version 2.0 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 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:

  • -level level β€” the name of the level to fill in as "priority" in the log procedure. so like, which level is this thing repping. πŸ‘‘
  • -service service β€” 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. 🫢
  • -appenderArgs appenderArgs β€” any additional arguments for the log procedure, and they gotta be in list form. fr fr, list form. πŸ“‹
  • -conversionPattern conversionPattern β€” the log pattern to use. (peep logger::utils::createLogProc for the allowed substitutions β€” that's where the receipts live πŸ‘€)
  • -procName procName β€” explicitly set the name of the created procedure. you're the main character, you name it. πŸ’…
  • -procNameVar procNameVar β€” 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 (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