An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# LogNest

## A "Header file only" library for logging to files made in C, with focus on simplicity

![image](images/example2.png)

## 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

![image](images/usage2.png)