Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Lwlogger is a c++ lightweight logger hence its name. With him you could debug your programs, save a trace of your programs and resolve bugs.

License

NotificationsYou must be signed in to change notification settings

thi8v/lwlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lwlogger is a C++ lightweight logger hence its name. With it you could debug your programs, save a trace of your programs and resolve bugs.

How to use it ?

Code

Just put the librairie andlogger.hpp next to your executable. Includelogger.hpp, where you want to use it. Or there is a test program you can go see it, if you want more details. When you initialize the logger, you just put the folder name followed by a/.

Example :

#include"logger.hpp"intmain(){  Loggerlogger("logs/");    logger.info("This is a test");return0;}

Result

In the terminal, the result is ...

[11:26:15] [INFO] This is a test

And in the folder you have a file named with the following schematicdd/mm/yyyy_hh:mm:ss.log.

Compile

With G++ you can compile your program like that :g++ <main_cpp_file> lwlogger.dll -o <name_program>

You can compile the lib if you want with this commandg++ -Wall -shared src/logger.cpp -o lwlogger.dll at the root of the project !

Your way to thank me

If you want to thank me, you can use this program, put a star and tell your friends about lwlogger!

About

Lwlogger is a c++ lightweight logger hence its name. With him you could debug your programs, save a trace of your programs and resolve bugs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp