Harald Hoyer
06ca27cdf5
dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal
12 years ago
Harald Hoyer
6b1e7a6ca4
dracut: use sysloglvl for systemd-cat logging
12 years ago
Harald Hoyer
bbaa0d5917
Use systemd-cat for logging on systemd systems, if logfile is empty
12 years ago
Harald Hoyer
36c34f4e71
Don't use do syncheck for target all and refine syncheck
...
instead of "dash -n" we now use "bash --posix -n"
we also check for "[[ " in posix shell files
12 years ago
Harald Hoyer
600c876968
consistently lowercase "dracut"
13 years ago
Harald Hoyer
5596b70bd0
dracut-logger.sh: don't check for *lvl==0 in dlog_init()
13 years ago
Harald Hoyer
b47d7a5fd4
dracut-logger.sh: empty functions for log funcs, which are below level
13 years ago
Harald Hoyer
5d897c82b9
dracut-logger.sh: use (( )) for numeric comparisons
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
Harald Hoyer
44cef0d563
dracut-logger: re-set debugging
14 years ago
Harald Hoyer
69063507d4
dracut-logger: bail out early, if we don't have to log anything
14 years ago
Harald Hoyer
3cd98a6094
dracut-logger: initialize basic vars
14 years ago
Harald Hoyer
e45ffb5d1f
dracut-logger: create logfile with 0600 permissions
14 years ago
Amadeusz Żołnowski
d60b71e8e8
dracut-logger: /dev/log is socket, not character device
...
Fixed typo in error message by the way.
14 years ago
Amadeusz Żołnowski
9ebc51100b
dracut-logger: 'user' facility for build-time and 'daemon' for boot-time
14 years ago
Harald Hoyer
519d339233
dracut-logger: don't debug log "return 0" of dlog()
14 years ago
Harald Hoyer
1e64e4939f
dracut-logger: turn off xtrace for log messages
...
Turn off xtrace for log messages and turn it back on, if $debug is set.
14 years ago
Amadeusz Żołnowski
46265a9d3e
dracut-logger: make $maxloglvl public
...
$maxloglvl might be useful to check, if expensive informational
operation is going to be logged at all, before executing it.
14 years ago
Amadeusz Żołnowski
510ef3af84
dracut-logger: convertion to kernel console log level for kmsg
14 years ago
Harald Hoyer
200c7fd4b2
dracut-logger: wrap dlog to read stdin
...
Moved dlog() to _do_dlog() and created dlog() which reads from stdin if
no arguments (except the loglevel) are given.
This enables e.g.:
dwarn "This is a warning!"
echo "This is a warning!" | dwarn
14 years ago
Harald Hoyer
7fc4fb0131
dracut-logger: export _maxloglvl to skip multiple dlog_init()
14 years ago
Amadeusz Żołnowski
e103615be2
dracut-logger: logging facility module for build- and boot-time
...
It's dash compatible to be used also at boot-time. For now it's included
by dracut-functions and replaces functions: dinfo(), dwarning() and
derror(). New options are introduced: -L|--stdlog, and -q|--quiet to
control stderr verbosity. Logging to file or syslog may be controlled by
options set in config file.
Note that code is not adjusted to the meaning of the new logging
functions, yet.
Doxygen formatted documentation (as a proposal, by the way) is included
in dracut-logger.
14 years ago