https://github.com/leaomartelo2/lognest
Simple header file only library in C to easily make log files
https://github.com/leaomartelo2/lognest
c c-library header-only logging
Last synced: 9 months ago
JSON representation
Simple header file only library in C to easily make log files
- Host: GitHub
- URL: https://github.com/leaomartelo2/lognest
- Owner: LeaoMartelo2
- License: mit
- Created: 2024-09-11T04:06:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T21:32:24.000Z (10 months ago)
- Last Synced: 2025-03-04T22:28:24.333Z (10 months ago)
- Topics: c, c-library, header-only, logging
- Language: C
- Homepage:
- Size: 315 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LogNest
## A "Header file only" library for logging to files made in C, with focus on simplicity

## Installing:
```
wget https://raw.githubusercontent.com/LeaoMartelo2/LogNest/main/lognest.h
```
just copy this if you are lazy
## Usage:
- Download `lognest.h` and add it to your project.
- For the library to serve as implementation, add: `#define LOGNEST_IMPLEMENTATION` before the `#include`.
- This also means you should only define the implementation in one file. Just including it serves as a header.
- Optionally cuztomize the output path in `lognest.h`, by changing `#define LOGNEST_FILE "your/custom/path"`
- The path is relative to the executable
