For obvious reasons it's impossible to use the sd_journal
C API from kernel
to do structured logging. However, there are mechanisms for passing key=value
pairs as extra data for log messages.
The standard way of reporting/logging from kernel is the printk()
function. As its name suggests, it's very similar to the well-known printf()
function from libc, but it has some specialties related to the fact that it's