Skip to main content

Name

debug_flags — configure debug verbosity

Description

Debug_Flags { level = ( mask ) }

Debug_Flags tells Momentum which events to write to the log_error handler of the logging subsystem. When using the default logging module ec_logger, these message will appear in the paniclog. The mask is a decimal number representing the bit mask that is used to activate logging statements. Starting with Momentum 1.2.12, a human readable variation of Debug_Flags is used. The sample below shows the default Debug_Flags setting, which turns on useful severe error messages, but leaves the more informational messages turned off, so that they don't clutter your log files.

Debug_Flags {
        DEBUG = ()
        INFO = ()
        NOTICE = ()
        WARNING = ()
        ERROR = (TIME FD SMTP LOG1 DNS DNSDS NET SIG MEM DB LIC SSL MOD START ALL)
        CRITICAL = (TIME FD SMTP LOG1 DNS DNSDS NET SIG MEM DB LIC SSL MOD START ALL)
}

Note

Use ‘ALL’ instead of listing each service debug flag.

LevelDescription
0Debug
1Info
2Notice
3Warning
4Error
5Critical

SubsystemSymbolic Name
GenericERROR
TimeTIME
File DescriptorsFD
SMTPSMTP
LOG1LOG1
DNSDNS
DNS data structuresDNSDS
NetworkNET
SignalsSIG
Memory ManagementMEM
DatabaseDB
LicenseLIC
SSLSSL
ModulesMOD
StartSTART

Scope

debug_flags is valid in the global scope.

Was this page helpful?