The logging class provides enums and flags for the LogEngine. More...
Header: | #include <Logging> |
enum | LoggingError { LoggingErrorNoError, LoggingErrorLogEntryNotFound, LoggingErrorInvalidFilterParameter } |
enum | LoggingEventType { LoggingEventTypeTrigger, LoggingEventTypeActiveChange, LoggingEventTypeActionsExecuted, LoggingEventTypeExitActionsExecuted, LoggingEventTypeEnabledChange } |
enum | LoggingLevel { LoggingLevelInfo, LoggingLevelAlert } |
enum | LoggingSource { LoggingSourceSystem, LoggingSourceEvents, LoggingSourceActions, LoggingSourceStates, LoggingSourceRules } |
flags | LoggingSources |
Logging(QObject * parent = 0) |
The logging class provides enums and flags for the LogEngine.
See also LogEngine, LogEntry, and LogFilter.
Represents the possible errors from the LogEngine.
Constant | Value | Description |
---|---|---|
nymeaserver::Logging::LoggingErrorNoError | 0 | No error happened. Everything is fine. |
nymeaserver::Logging::LoggingErrorLogEntryNotFound | 1 | The requested LogEntry could not be found. |
nymeaserver::Logging::LoggingErrorInvalidFilterParameter | 2 | The given LogFilter contains an invalid parameter. |
Represents the event type of this LogEntry.
Constant | Value | Description |
---|---|---|
nymeaserver::Logging::LoggingEventTypeTrigger | 0 | This event type describes an Event which has triggered. |
nymeaserver::Logging::LoggingEventTypeActiveChange | 1 | This event type describes a Rule which has changed its active status. |
nymeaserver::Logging::LoggingEventTypeActionsExecuted | 3 | This event type describes the actions execution of a Rule. |
nymeaserver::Logging::LoggingEventTypeExitActionsExecuted | 4 | This event type describes the exit actions execution of a Rule. |
nymeaserver::Logging::LoggingEventTypeEnabledChange | 2 |
Indicates if the corresponding LogEntry is an information or an alert.
Constant | Value | Description |
---|---|---|
nymeaserver::Logging::LoggingLevelInfo | 0 | This LogEntry represents an information. |
nymeaserver::Logging::LoggingLevelAlert | 1 | This LogEntry represents an alert. Something is not ok. |
Indicates from where the LogEntry was created. Can be used as flag.
Constant | Value | Description |
---|---|---|
nymeaserver::Logging::LoggingSourceSystem | 0 | This LogEntry was created from the nymea system (server). |
nymeaserver::Logging::LoggingSourceEvents | 1 | This LogEntry was created from an Event which trigged. |
nymeaserver::Logging::LoggingSourceActions | 2 | This LogEntry was created from an Action which was executed. |
nymeaserver::Logging::LoggingSourceStates | 3 | This LogEntry was created from an State which hase changed. |
nymeaserver::Logging::LoggingSourceRules | 4 | This LogEntry represents the enable/disable event from an Rule. |
The LoggingSources type is a typedef for QFlags<LoggingSource>. It stores an OR combination of LoggingSource values.
Constructs the Logging object with the given parent.