Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mistralol/liblogger
CPP Logging Library
https://github.com/mistralol/liblogger
cpp liblogger logging syslog
Last synced: 3 days 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T15:41:08.000Z (almost 5 years ago)
- Last Synced: 2023-08-01T15:15:22.174Z (over 1 year 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;
}