.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Munin::Master::Logger 3pm" .TH Munin::Master::Logger 3pm 2024-02-28 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Munin::Master::Logger \- Munin master's old logging routines .SH SYNOPSIS .IX Header "SYNOPSIS" This module contains Munin master's old logging routines while we're switching to Log::Log4perl. It also sets up Log4perl according to our needs. .PP Do not use "logger" when writing new code, use the Log::Log4perl :easy API. This module takes care of initializing Log::Log4perl at load time. .SH SUBROUTINES .IX Header "SUBROUTINES" .IP \fBlogger_open\fR 4 .IX Item "logger_open" needs to be called once in the main program with one argument: The directory where the munin logs goes. The running programs name ($0) will be used as the log name (e.g. munin\-graph.log). .IP \fBlogger\fR 4 .IX Item "logger" Do not use. .IP \fBlogger_level\fR 4 .IX Item "logger_level" Use to set the programs log level to debug, info, warn, error, or fatal. This corresponds to the log levels used in syslog, but syslog is not used for logging. .IP \fBlogger_debug\fR 4 .IX Item "logger_debug" Set up DEBUG logging. Both STDOUT and the log file will receive DEBUG level output. .SH AUTHOR .IX Header "AUTHOR" Munin master logging ported to Log4perl by Nicolai Langfeldt. Split out into this module by Kjell Magne Øierud. .SH LICENSE .IX Header "LICENSE" GPLv2