small efficient logging library
Find a file
Ava Affine 0827a07975
Some checks failed
per-push tests / test (push) Failing after 12m57s
per-push tests / build (push) Failing after 13m18s
add forgejo ci
Signed-off-by: Ava Affine <ava@sunnypup.io>
2025-07-21 09:48:25 -07:00
.forgejo/workflows add forgejo ci 2025-07-21 09:48:25 -07:00
tests portable makefiles 2022-03-07 00:54:02 -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 test and update the printf functionality 2022-08-11 11:15:42 -07:00
alog.h test and update the printf functionality 2022-08-11 11:15:42 -07:00
LICENSE Initial implementation of logging library 2022-02-27 20:45:41 -08:00
Makefile test and update the printf functionality 2022-08-11 11:15:42 -07:00
README.md fix readme and add test instructions 2022-03-07 12:01:41 -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 alog-so

How to test

$ make alog-tests

Variables

The following (shell) variables can be set at compile time:

  • 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.