-
Notifications
You must be signed in to change notification settings - Fork 39
/
LogTypes.h
executable file
·48 lines (43 loc) · 1.32 KB
/
LogTypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**************************************************************
* Copyright (c) 2010-2014, Dynamic Network Services, Inc.
* Author - Jake Montgomery ([email protected])
* Distributed under the FreeBSD License - see LICENSE
***************************************************************/
#pragma once
#include "Logger.h"
/**
* Logging types
*/
struct Log
{
enum Level
{
None = 0,
Minimal,
Normal,
Detailed,
Dev, // This will change with the developers whim.
All, // be careful .. this is a lot of info.
LevelCount // used only to signify error
};
enum Type
{
Critical = 0, // Serious failure.
Error, // Major failure
Warn, // Problematic condition
Debug,
App, // General important info about app
AppDetail, // Detailed info about app.
Session, // Session creation and state change.
SessionDetail, // Session creation and state change.
Discard, // Packet discards and errors
DiscardDetail, // Contents of (some) discarded packets.
Packet, // Detailed packet info
PacketContents, // Log every non-discarded packet.
Command, // Commands
CommandDetail, // Detailed info about command processing
TimerDetail, // Detailed info about timers and scheduler.
Temp, // Special temporary log messages
TypeCount // used only to signify error
};
};