Skip to content

lucadesogus/cppLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cppLog

c++11

Log helper class written in modern C++

cppLog::LogI("Hello", "World!");  
auto age = 29;  
cppLog::LogW("I'm", age, "years old.");  
auto b = true;  
cppLog::LogE("Yes, this is", b);  
cppLog::LogD("Goodbye!");  

img_short_example

Tested Platforms

  • Windows 10
  • Ubuntu 16.04
  • macOS HighSierra 10.13.6

Tested Compilers

  • MSVC 19.14.26428.1
  • GCC 5.4.0
  • CLang 9.1.0.9020039

How to use cppLog

Include "cpplog.hpp" into your project and use it as shown in "example/main.cpp".

Build and run the example

Cmake >= 3.5

Unix:

cd cppLog  
mkdir build  
cd build  
cmake ..
make
./bin/cpplog

Windows:

cd cppLog
mkdir build
cd build
cmake .. -G "NMake Makefiles"
nmake
.\bin\cpplog

About

Log helper class written in modern C++

Resources

License

Stars

Watchers

Forks

Packages

No packages published