• Cyrill Gorcunov's avatar
    log: log-engine slight redesign · 7aa8e4b6
    Cyrill Gorcunov authored
    The messages are filtered by their type
    
        LOG_MSG     - plain messages, they escape any (!) log level
                      filtration and go to stdout
        LOG_ERROR   - error messages
        LOG_WARN    - warning messages
        LOG_INFO    - informative messages
        LOG_DEBUG   - debug messages
    
    By default the LOG_WARN log level is used, thus LOG_INFO
    and LOG_DEBUG messages will not appear in output stream.
    
    pr_panic helper was replaced with pr_err, pr_warning
    shorthanded to pr_warn and old printk if rather pr_msg
    now.
    
    Because we share messages between "show" and "dump" actions,
    before the "show" action proceed we need to tune up
    log level and set it to LOG_INFO.
    
    Also note that printing of VMA and siginfo now
    became LOG_INFO messages, it was not that correct
    to print them regardless the log level.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    7aa8e4b6
Name
Last commit
Last update
..
atomic.h Loading commit data...
bitops.h Loading commit data...
compiler.h Loading commit data...
crtools.h Loading commit data...
file-ids.h Loading commit data...
files.h Loading commit data...
image.h Loading commit data...
inet_diag.h Loading commit data...
ipc_ns.h Loading commit data...
libnetlink.h Loading commit data...
list.h Loading commit data...
lock.h Loading commit data...
log.h Loading commit data...
namespaces.h Loading commit data...
parasite-syscall.h Loading commit data...
parasite.h Loading commit data...
proc_parse.h Loading commit data...
processor-flags.h Loading commit data...
ptrace.h Loading commit data...
rbtree.h Loading commit data...
restorer-log.h Loading commit data...
restorer.h Loading commit data...
sockets.h Loading commit data...
syscall-codes.h Loading commit data...
syscall.h Loading commit data...
sysctl.h Loading commit data...
types.h Loading commit data...
unix_diag.h Loading commit data...
util-net.h Loading commit data...
util.h Loading commit data...
uts_ns.h Loading commit data...