Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
Loading...
Searching...
No Matches
logger.h File Reference
#include <QObject>
#include <QListView>
#include <QSettings>
#include <QStandardPaths>
#include <QListWidgetItem>
#include <QDateTime>
#include <QFileDialog>
#include <ui_mainwindow.h>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  REMOTE_LOG_ENTRY
class  Logger

Macros

#define DEFAULT_MAXIMUM_LOG_LINES   20000
 The maximum number of log lines kept.

Enumerations

enum  LOGGING_MODE {
  MODE_SIG_PROC , MODE_QT , MODE_GENERAL , MODE_THREAD ,
  MODE_CONFIG , MODE_TIMING , MODE_SECURITY , MODE_GRAPHICS ,
  MODE_MEMORY , MODE_MATHS , MODE_FILE , MODE_NETWORK ,
  MODE_OPERATOR , MODE_DATABASE , MODE_EXCEPTION , MODE_SENSOR
}
 Log Severity allow the selection of logging events based on the mode. More...
enum  LOGGING_SEVERITY {
  LOG_EMERGENCY , LOG_ALERT , LOG_CRITICAL , LOG_ERROR ,
  LOG_WARNING , LOG_NOTICE , LOG_INFO , LOG_DEBUG
}
 Log Severity allow the selection of logging events based on Severity. More...

Macro Definition Documentation

◆ DEFAULT_MAXIMUM_LOG_LINES

#define DEFAULT_MAXIMUM_LOG_LINES   20000

The maximum number of log lines kept.

This is the default maximum number of lines that the log will hold before it starts deleting the old lines.

Definition at line 72 of file logger.h.

Referenced by Logger::Logger().

Enumeration Type Documentation

◆ LOGGING_MODE

Log Severity allow the selection of logging events based on the mode.

The log mode provide finer filtering of logging events. See SetModeMask for an explanation of the Mode.

Enumerator
MODE_SIG_PROC 

Signal Processing

MODE_QT 

Qt Related Event

MODE_GENERAL 

General, No Specific Event

MODE_THREAD 

Thread Issue of Some Kind

MODE_CONFIG 

Configuration Issue - Config File Value, etc.

MODE_TIMING 

Timing Issue - Takes too long, too quick, etc.

MODE_SECURITY 

Communication Issue - Serial, Ethernet, USB, etc.

MODE_GRAPHICS 

Graphics Issues - Video or Image File, etc.

MODE_MEMORY 

Memory Allocation or Use Issue

MODE_MATHS 

Mathematical Problem. Overflow, etc.

MODE_FILE 

File Problem - Open, close, Read, Write, etc.

MODE_NETWORK 

Network Problem - Connectivity, Read, Write, etc.

MODE_OPERATOR 

Operator Problem - Bad Selection, No Selection, etc.

MODE_DATABASE 

Database Problem - Open, Read, Write, etc.

MODE_EXCEPTION 

General Exception - Cause may not be specific

MODE_SENSOR 

Sensor Problem - Usually an External Sensor

Definition at line 20 of file logger.h.

21{
23 MODE_QT,
32 MODE_FILE,
38};
@ MODE_QT
Definition logger.h:23
@ MODE_FILE
Definition logger.h:32
@ MODE_SECURITY
Definition logger.h:28
@ MODE_OPERATOR
Definition logger.h:34
@ MODE_TIMING
Definition logger.h:27
@ MODE_GRAPHICS
Definition logger.h:29
@ MODE_SIG_PROC
Definition logger.h:22
@ MODE_THREAD
Definition logger.h:25
@ MODE_CONFIG
Definition logger.h:26
@ MODE_NETWORK
Definition logger.h:33
@ MODE_SENSOR
Definition logger.h:37
@ MODE_MEMORY
Definition logger.h:30
@ MODE_DATABASE
Definition logger.h:35
@ MODE_MATHS
Definition logger.h:31
@ MODE_GENERAL
Definition logger.h:24
@ MODE_EXCEPTION
Definition logger.h:36

◆ LOGGING_SEVERITY

Log Severity allow the selection of logging events based on Severity.

The log severity provide finer filtering of logging events. See SetSeverityMask for an explanation of the severity.

Enumerator
LOG_EMERGENCY 

The system is unusable. A condition usually affecting multiple apps/servers/sites.

LOG_ALERT 

Action must be taken immediately. An example would be the loss of a network connection.

LOG_CRITICAL 

Critical conditions. Should be corrected immediately, but indicates failure in a secondary system.

LOG_ERROR 

Non-urgent failures which must be resolved within a given time.

LOG_WARNING 

Warning conditions. Not an error, but indication that an error will occur if action is not taken, e.g. disk 85% full.

LOG_NOTICE 

Normal, but significant, condition. Events that are unusual but not error conditions - no immediate action required

LOG_INFO 

Informational message. Normal operational messages - may be harvested for reporting, etc. - no action required.

LOG_DEBUG 

Debug-level message. Info useful to developers for debugging the application, not useful during operations.

Definition at line 47 of file logger.h.

48{
50 LOG_ALERT,
52 LOG_ERROR,
55 LOG_INFO,
57};
@ LOG_CRITICAL
Definition logger.h:51
@ LOG_ERROR
Definition logger.h:52
@ LOG_INFO
Definition logger.h:55
@ LOG_EMERGENCY
Definition logger.h:49
@ LOG_ALERT
Definition logger.h:50
@ LOG_WARNING
Definition logger.h:53
@ LOG_DEBUG
Definition logger.h:56
@ LOG_NOTICE
Definition logger.h:54