Skip to content

A very basic header only C++ logging library. Implemented multiple log levels with different colors, log time file and line number.

License

Notifications You must be signed in to change notification settings

JayNakum/CppLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A very basic header only C/C++ logging library.

Screenshots

example

Features

  • Multiple types and levels of log messages.
  • Log time, file and line number.

Get Started

Include CppLog.h and directly use the functions

LOG_DEBUG("Test");
LOG_INFO("Test");
LOG_WARNING("Test");
LOG_ERROR("Test");
LOG_CRITICAL("Test");
ASSERT(condition, "Test");

You can also define your preffered log level

#define LOG_LEVEL DEBUG_LEVEL
#define LOG_LEVEL INFO_LEVEL
#define LOG_LEVEL WARNING_LEVEL
#define LOG_LEVEL ERROR_LEVEL
#define LOG_LEVEL CRITICAL_LEVEL
#define LOG_LEVEL ASSERT_LEVEL

for a better understanding see Example.cpp

Future Plans

  • Logging to a file

Developed by Jay Nakum.

About

A very basic header only C++ logging library. Implemented multiple log levels with different colors, log time file and line number.

Topics

Resources

License

Stars

Watchers

Forks

Languages