Skip to content

Super Lightweight Logging Library for C++ using only the standard library

Notifications You must be signed in to change notification settings

bacon-GIT/LWLOG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

NO REQUIREMENTS

Just add the header file to your project and

#include "Log.h"

And initialize the logger as a global variable to avoid having to define it within every function:

Log::Logger mylogger(<LOG FILE NAME>, <COUT OUTPUT>);

And remember to mylogger.CloseLogger(); to close the filestream. This was originally the destructor but that caused a wholly unnecessary amount of file operations.

Log Levels:
    0   -   NONE
    1   -   DEBUG
    2   -   INFO
    3   -   WARM
    4   -   ERROR
    5   -   CRITICAL

I got sick of using bloated logging libraries when I only needed to do two things, tell me what went wrong and when. Making this more verbose and easy to use as I go.

About

Super Lightweight Logging Library for C++ using only the standard library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages