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 messages will appear in the paniclog. The mask is a decimal number representing the bit mask that is used to activate logging statements. A human-readable variation of Debug_Flags is used. The sample below shows the default 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.

The example below enables more (at WARNING level) MTA-STS and SSL related logging, along with default ERROR and CRITICAL loggings:

Debug_Flags {
    WARNING = (MTA_STS SSL)
    ERROR = (ALL)
    CRITICAL = (ALL)
}

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

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

Scope

debug_flags is valid in the global scope.

Was this page helpful?