[CRIU] [PATCH 3/3] log: log engine slight redesign
Pavel Emelyanov
xemul at parallels.com
Wed Feb 29 05:39:56 EST 2012
On 02/29/2012 02:24 AM, Cyrill Gorcunov wrote:
> As being pointed by Kir there must be a clear
> distinction between errors and output messages.
>
> Errors should always go to stderr descriptor
> while any other messages should go to stdout
> descriptor.
>
> To achieve this a log engine was redesigned
> a bit.
>
> The messages are filtered by their type
>
> LOG_MSG - [stdout] plain messages, they escape any
> log level filtration
> LOG_ERROR - [stderr] error messages
> LOG_WARN - [strerr] warning messages
> LOG_INFO - [stdout] informative messages
> LOG_DEBUG - [stdout] debug messages
These 4 above should go to logfd, no?
> By default the LOG_WARN log level is used, thus LOG_INFO
> and LOG_DEBUG messages will not appear in output stream.
More information about the CRIU
mailing list