https://github.com/osfabias/olog.c
c logging library
https://github.com/osfabias/olog.c
c c99 log logger logging
Last synced: over 1 year ago
JSON representation
c logging library
- Host: GitHub
- URL: https://github.com/osfabias/olog.c
- Owner: osfabias
- Created: 2025-01-23T01:55:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T16:23:30.000Z (over 1 year ago)
- Last Synced: 2025-01-30T17:30:10.980Z (over 1 year ago)
- Topics: c, c99, log, logger, logging
- Language: C
- Homepage:
- Size: 581 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# olog.c
Cross-platform logging library for C99.

#### Example
```c
#include "olog.h"
int main(void)
{
olog_config config = {
.file_path = "logs.txt",
.level = OLOG_LEVEL_TRACE,
};
olog_init(config);
olog_info("hello, world!");
olog_deinit();
return 0;
}
```
#### How to use with CMake
```cmake
add_subdirectory(olog)
...
target_link_libraries( olog)
```
#### How to build
```sh
cmake -B build .
cmake --build build
```