Munin::...::Logger(3)
β¨ NAME β¨
Munin::Master::Logger β the Munin master's old logging routines π«Ά (yes, this is Munin::...::Logger(3), the User Contributed Perl Documentation page, hi bestie π)
πΈ SYNOPSIS πΈ
Okay so real talk: this module is holding the Munin master's old logging routines while the whole thing is mid-glow-up to Log::Log4perl. It's giving "keeping the old fit in the back of the closet just in case" π
. It also sets up Log4perl according to our needs, so it's doing double duty, main character energy fr fr.
β οΈ Do not useloggerwhen writing new code, bestie. Use theLog::Log4perl:easyAPI instead. Pretty please. π This module takes care of initializingLog::Log4perlat load time, so it's already doing its thing whether you asked or not β¨.
π¦ SUBROUTINES π¦
logger_openβ needs to be called once in the main program, with one argument: the directory where the munin logs go π. The running program's name ($0) gets used as the log name (so like,munin-graph.log, iykyk). One call, one dir, that's the vibe.loggerβ Do not use. π That's it. That's the whole description. No cap.logger_levelβ use this to set the program's log level todebug,info,warn,error, orfatalπ. These correspond to the log levels used in syslog, but syslog is not used for logging. Not the vibe, not the setup, just the level names. πlogger_debugβ sets upDEBUGlogging π₯. BothSTDOUTand the log file will receiveDEBUGlevel output, so you get the tea in two places at once π.
π AUTHOR π
Munin master logging was ported to Log4perl by Nicolai Langfeldt π, and then split out into this module by Kjell Magne Γierud β¨. Two icons, one module, we love to see it π«Ά.
π LICENSE π
GPLv2 β that's the license, periodt. β
β¨ and that's the whole page, bestie β¨ β this was Munin::...::Logger(3) from perl v5.42.3, dated 1980-01-01 π¦ (yes, that date is a whole mood, don't come for it π
). mwah, go forth and log responsibly π
π¦ where this page comes from
- nixos 26.05: munin 2.0.76
- nixpkgs unstable: munin 2.0.78
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms