small efficient logging library
Find a file
Aidan Hahn 8dca2bac04
use semaphore to remove race con in tests
Signed-off-by: Aidan Hahn <aidan@aidanis.online>
2022-03-06 23:39:55 -08:00
tests use semaphore to remove race con in tests 2022-03-06 23:39:55 -08:00
.gitignore Initial implementation of logging library 2022-02-27 20:45:41 -08:00
.gitlab-ci.yml add gitlab CI 2022-03-01 23:40:20 -08:00
alog.c add rudimentary unit tests, and logging timestamps 2022-02-28 01:09:33 -08:00
alog.h add rudimentary unit tests, and logging timestamps 2022-02-28 01:09:33 -08:00
LICENSE Initial implementation of logging library 2022-02-27 20:45:41 -08:00
Makefile add unique names so that makefiles including these dont have to account for conflict 2022-02-28 01:14:56 -08:00
README.md add rudimentary unit tests, and logging timestamps 2022-02-28 01:09:33 -08:00

Introduction

  • alog or a logger is a lightweight, portable logger written in C.
  • It is entirely unremarkable
  • Usage of alog is extremely simple.

What kind of things can I log to?

Anything that is a file descriptor and can be written to with write() and fsync(). This includes the following:

  • pipes
  • files
  • stdout
  • stderr
  • sockets (untested)

How do I use this library?

How to build

$ make so

How to test


# Variables
The following (shell) variables can be set to influence behavior at runtime:

- **ALOG_DEBUG**: Set this variable to compile with debug symbols
- **ALOG_HIJACK_PRINTF**: Set this variable to compile along with a printf implementation that leverages alog. Probably dont though.