https://github.com/mistralol/liblogger
CPP Logging Library
https://github.com/mistralol/liblogger
cpp liblogger logging syslog
Last synced: 4 months ago
JSON representation
CPP Logging Library
- Host: GitHub
- URL: https://github.com/mistralol/liblogger
- Owner: mistralol
- License: mit
- Created: 2013-07-02T10:10:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T15:41:08.000Z (over 5 years ago)
- Last Synced: 2025-01-13T10:51:58.879Z (6 months ago)
- Topics: cpp, liblogger, logging, syslog
- Language: C++
- Size: 171 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
liblogger
===========CPP Logging Library
Usage is simple.
#include
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;
}