]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Add "log message" console usage and an internal syslog() call
authorMichael Brown <mcb30@ipxe.org>
Mon, 26 Mar 2012 18:50:50 +0000 (19:50 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 26 Mar 2012 18:58:14 +0000 (19:58 +0100)
commit24b7296319666709ac49bedb47df18d0bc37704e
treed2c5847e0d8844ea50b7a835fe7d21fd5f556a4d
parent64d17dbd509d15ddf41bfc5d5b88d53b5af98155
[console] Add "log message" console usage and an internal syslog() call

Provide an internal syslog() function (unrelated to the syslog
console) which can be used to create log messages with specified
priorities.

The build-time constant LOG_LEVEL can be used to select the minimum
required priority for log messages.  Any messages that do not have a
sufficient priority will be ignored (and will be optimised away at
compile-time).

The default LOG_LEVEL is LOG_NONE.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/console.h
src/core/log.c [new file with mode: 0644]
src/include/ipxe/console.h
src/include/ipxe/syslog.h
src/include/syslog.h [new file with mode: 0644]