Skip to content
/ log.c Public
forked from rxi/log.c

A simple logging library

License

Notifications You must be signed in to change notification settings

atmgnd/log.c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

log.c

A simple logging library implemented in C99

Usage

log.c and log.h should be dropped into an existing project and compiled along with it.

logc_set_level(int level)

The current logging level can be set by using the logc_set_level() function. All logs below the given level will be ignored. By default the level is LOGC_TRACE, such that nothing is ignored.

2019-05-03 15:31:41.898 TRACE [16727]: Hello world

logc_log(int level, const char *fmt, ...)

print log in printf like way

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.

About

A simple logging library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 77.1%
  • CMake 22.9%