https://github.com/jwerle/logger.c
Super simple C logger
https://github.com/jwerle/logger.c
Last synced: about 2 months ago
JSON representation
Super simple C logger
- Host: GitHub
- URL: https://github.com/jwerle/logger.c
- Owner: jwerle
- Created: 2013-05-25T13:50:19.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-25T14:39:50.000Z (about 13 years ago)
- Last Synced: 2026-01-02T01:16:51.011Z (6 months ago)
- Language: C
- Size: 113 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
logger.c
========
super simple C logger
## install
with [cpm](https://github.com/visionmedia/cpm):
```sh
$ cpm install jwerle/logger.c
```
from source:
```sh
$ git clone git@github.com:jwerle/logger.c.git
```
## usage
```c
#include "logger.h"
int
main (void) {
logger_t *logger = logger_new("logger");
logger->log("log");
logger->info("info");
logger->debug("debug");
logger->warn("warn");
logger->error("error");
}
```
## api
```c
logger_t *
logger_new (char *name);
void
logger_log(char *message);
void
logger_info (char *message);
void
logger_debug (char *message);
void
logger_warn (char *message);
void
logger_error (char *message);
void
logger_free (logger_t *logger);
```
## license
MIT