Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Logger

MIT License Copyright (c) 2025 kioz.wang

Description

最通用、最迷你的日志框架。可用于 C, C++

Test and Run

$ rm -f *.gch *.o a.out && gcc -Wall -Wextra -D__TEST_MAIN__ *.[ch]
$ ./a.out 
[E]hello world
[W]hello world
[I]hello world
$ log2stderr=99 ./a.out
[4fa25cf261][E]hello world
[E]hello world
[4fa25cf290][W]hello world
[W]hello world
[4fa25cf295][I]hello world
[I]hello world
[4fa25cf299][V]hello world
[4fa25cf29b][D]hello world

Howto use

Build

构建成独立的静态或动态库,或加入到代码树中一起构建。

API

详见 头文件

About

Minimal and common Logger

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages