Skip to content

Uttkarsh09/lucid-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • A logger class implemented using the singleton design pattern.
  • A single object can be used throught the project for logging.
  • 7 level log hierarchy - OFF, CRITICAL, ERROR, WARNING INFO, DEBUG, ALL(default).

Usage

  • add the logger.hpp file in your include folder and specify its path during compilation.
  • Either the logger.cpp file can be used in the project or the lib can be downloaded.
  •   Logger *l = Logger::GetInstance("log_file_path.log");
      l->logIt(l->INFO, "Message to be logged");
      l->deleteInstance();
    

#### Limitations
- All logs go into a single file specified during the first request for the logger object.
- Open for any suggestions : )

About

A lightweight logger in C++

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages