Munin::...::Logger(3)

πŸ“¦ version 2.0.78, in nixos 26.05, nixpkgs unstable

✨ 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 use logger when writing new code, bestie. Use the Log::Log4perl :easy API instead. Pretty please. πŸ™ This module takes care of initializing Log::Log4perl at 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 to debug, info, warn, error, or fatal 🌈. 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 up DEBUG logging πŸ”₯. Both STDOUT and the log file will receive DEBUG level 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