-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
39 lines (28 loc) · 847 Bytes
/
README
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
liblogger
===========
CPP Logging Library
Usage is simple.
#include <liblogger.h>
using namespace liblogger;
int main(int argc, char ** argv)
{
LogManager::Init();
LogManager::Add(new LogSyslog());
//LogManager::Add(new LogCallBack(Function));
//LogManager::Add(new LogFile("mylogfile.log"));
//LogManager::Add(new LogPipe("cat"));
//LogManager::Add(new LogStderr());
//LogManager::Add(new LogStdout());
//LogManager::Add(new LogTail(500));
LogDebug("Debug Logging #1");
LogInfo("Info Logging #1");
LogNotice("Notice Logging #1");
LogWarning("Warning!!!!!!");
LogError("This is an Error");
LogCritical("Something Critical happened");
LogAlert("Alert Alert");
LogEmergency("Emergency!");
LOGGER << LOGGER_INFO << "Some Message" << std::endl;
LogManager::RemoveAll(true);
return 0;
}