13#include <Kanoop/kanoopcommon.h>
65 insert(
Alert,
"Alert");
67 insert(
Error,
"Error");
71 insert(
Debug,
"Debug");
A QMap subclass providing bidirectional enum-to-string lookups.
Bidirectional map between LogLevel values and their string names.
LogLevelToStringMap()
Populate the map with all standard LogLevel name pairs.
Logging subsystem providing categorized, level-filtered output.
LogLevel
Severity levels for log messages, ordered from most to least critical.
@ Critical
Critical conditions.
@ Info
Informational messages.
@ Alert
Action must be taken immediately.
@ Warning
Warning conditions.
@ Debug
Debug-level messages.
@ Emergency
System is unusable.
@ Notice
Normal but significant condition.
KANOOP_EXPORT LogLevel getLogLevel(const QString &levelName)
Look up a LogLevel by its name string.
KANOOP_EXPORT QString getLogLevelString(LogLevel level)
Return the name string for a LogLevel value.
KANOOP_EXPORT QList< LogLevel > getLogLevels()
Return a list of all defined LogLevel values.
KANOOP_EXPORT LogLevel level()
Return the current minimum log level of the system logger.
OutputFlags
Bitmask flags controlling where log output is sent.
@ Console
Write to stdout/stderr.
@ Timestamp
Include timestamps in output.
@ None
No output flags set.
@ Level
Include severity level in output.
@ LineNumbers
Include source line numbers in output.
@ File
Write to a log file.
@ Syslog
Write to the system syslog.
@ QDebug
Write via Qt's qDebug() mechanism.
@ Standard
Default output configuration.