MEDIUM: log: support a new "short" format
This format is meant to be used with local file descriptors. It emits
messages only prefixed with a level, removing all the process name,
system name, date and so on. It is similar to the printk() format used
on Linux. It's suitable to be sent to a local logger compatible with
systemd's output format.
Note that the facility is still required but not used, hence it is
suggested to use "daemon" to remind that it's a local logger.
Example :
log stdout format short daemon # send everything to stdout
log stderr format short daemon notice # send important events to stderr
diff --git a/include/types/log.h b/include/types/log.h
index c394d77..3813cfb 100644
--- a/include/types/log.h
+++ b/include/types/log.h
@@ -41,6 +41,7 @@
enum {
LOG_FORMAT_RFC3164 = 0,
LOG_FORMAT_RFC5424,
+ LOG_FORMAT_SHORT,
LOG_FORMATS, /* number of supported log formats, must always be last */
};