consolelogga - logs console messages at boot and shutdown. a boot logging utility for non-systemd linux inits.
Download size 26KB
md5 checksum:
$ md5sum consolelogga1.0.1.tar.gz
09a6c1e3735beb413dd8ab7e8c6e7849 consolelogga1.0.1.tar.gz
Extract with:
$ tar -xvzf consolelogga1.0.1.tar.gz
Build requirements
glibc - other C libraries have not been tested.
gettext, with it's dev package if separate. (Optional)
scons.consolelogga is available on github as well as here, so you browse the source online : https://github.com/zqqw/consolelogga
The tar.gz file here contains the same version.
gcc or clang / llvm - both tested, other compilers are supported by scons.
Using consolelogga
It's inspired by bootlogd from sysvinit but is a completely new blank page implementation with different internal operation and extra features. This allows a runit friendly BSD type licence, as Runit lacked a bootlogger. It can log not only boot messages but also shutdown messages. Start it as early as possible in the boot sequence, /dev must be populated. It could be shutdown after boot and restarted just before shutdown. But it will sleep on a blocking read indefinitely without console input, so all it should use is a tiny bit of RAM and just starting it once is fine. It should be automatically terminated by the init system when that sends a sigterm to all remaining backround processes shortly before final shutdown. This allows consolelogga to do any clean up and exit neatly by itself (before the init sends a subsequent sigkill) but still log as much as practical. Logs are written to /var/log/consolelogga.log but only if it already exists, the messages are cached in RAM with a linked list until the log is available. Everything written to /dev/console is intercepted then forwarded to the log and the terminal(s) acting as the display console. The time each line is received, not the time it's written to the log, can also be recorded.
Currently includes gettext language support for:
Czech Dutch English Estonian French German Hungarian Italian Polish Russian Spanish
md5 checksum:
$ md5sum consolelogga1.0.1.tar.gz
09a6c1e3735beb413dd8ab7e8c6e7849 consolelogga1.0.1.tar.gz
Extract with:
$ tar -xvzf consolelogga1.0.1.tar.gz
Build requirements
glibc - other C libraries have not been tested.
gettext, with it's dev package if separate. (Optional)
scons.consolelogga is available on github as well as here, so you browse the source online : https://github.com/zqqw/consolelogga
The tar.gz file here contains the same version.
gcc or clang / llvm - both tested, other compilers are supported by scons.
Using consolelogga
It's inspired by bootlogd from sysvinit but is a completely new blank page implementation with different internal operation and extra features. This allows a runit friendly BSD type licence, as Runit lacked a bootlogger. It can log not only boot messages but also shutdown messages. Start it as early as possible in the boot sequence, /dev must be populated. It could be shutdown after boot and restarted just before shutdown. But it will sleep on a blocking read indefinitely without console input, so all it should use is a tiny bit of RAM and just starting it once is fine. It should be automatically terminated by the init system when that sends a sigterm to all remaining backround processes shortly before final shutdown. This allows consolelogga to do any clean up and exit neatly by itself (before the init sends a subsequent sigkill) but still log as much as practical. Logs are written to /var/log/consolelogga.log but only if it already exists, the messages are cached in RAM with a linked list until the log is available. Everything written to /dev/console is intercepted then forwarded to the log and the terminal(s) acting as the display console. The time each line is received, not the time it's written to the log, can also be recorded.
Currently includes gettext language support for:
Czech Dutch English Estonian French German Hungarian Italian Polish Russian Spanish