[lxc-devel] Duplicate definitions of `lxc_log_define`
Cedric Le Goater
legoater at free.fr
Mon Jan 11 11:03:33 UTC 2010
>> It would be simple to define lxc_log_define(start, lxc) for start.c and
>> lxc_log_define(lxc_start, lxc) for lxc_start.c and so on for the rest of
>> the lxc_log_define eg. lxc_log_define(lxc_namespace, lxc) =>
>> lxc_log_define(namespace, lxc).
>
> what you propose should be fine but it kind of messes up the hierarchy concept
> which is behind the log4* names to activate or deactivate a branch of categories.
> if we were to respect this hierarchy concept, we would use something like :
>
> lxc_log_define(lxc_start, lxc) for lxc_start.c
> lxc_log_define(lxc_start_routine, lxc_start) for start.c
or add a lxc_ui for command line interface :
lxc_log_define(lxc_ui, lxc) for lxc_<cmd>.c
and keep the current :
lxc_log_define(lxc_<cmd>, lxc) for <cmd>.c
I think this is better.
cheers,
C.
More information about the lxc-devel
mailing list