https://github.com/bingus-dev/libjlog
libjlog: Easily configurable standarized printing for hobby operating systems
https://github.com/bingus-dev/libjlog
Last synced: about 1 year ago
JSON representation
libjlog: Easily configurable standarized printing for hobby operating systems
- Host: GitHub
- URL: https://github.com/bingus-dev/libjlog
- Owner: bingus-dev
- License: other
- Created: 2024-10-24T20:24:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-18T16:49:21.000Z (over 1 year ago)
- Last Synced: 2025-03-17T15:26:07.434Z (about 1 year ago)
- Language: C
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
libjlog v1.1.2 release notes
======================
libjlog is a simple-to-use standarized output
system for low-level software like custom operating
systems and C-based memory-efficient systems.
It is configurable and easy-to-use for both C and C++.
Configure
======================
Copy "libjlog.c" and "libjlog.h" into your project.
While booting into your system, initialize libjlog with
this code:
libjlog_init(printing_fn, "OSName")
libjlog requires printing_fn as a callback. Here is an
example:
void printing_fn(char *text) {
// do stuff here to output *text !
}
You can find examples to use for your code in the /examples
directory.
To test libjlog, you can set libjcli.config.h's printing function
and use the included CLI tool (run make).
You should be good from here.