Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;
}