Skip to content

A simple, lightweight log-to-file options for c projects.

License

Notifications You must be signed in to change notification settings

engineerOfLies/simple_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_logger

A simple, lightweight log-to-file option for C and C++ projects.

Features

  • No dependencies beyond standard C library
  • just drop the .c and .h files into your project and get started
  • automatic file and line numbers added to log messages

Usage

  1. at the start of your program run
init_logger("YOUR LOG FILE GOES HERE");
  1. frequently call and before program exit
slog_sync();

(Such as every game or program loop or in its own thread)

  1. Call
slog(...);

whenever you want to write something to file and standard out

About

A simple, lightweight log-to-file options for c projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published