[bind10-dev] Logging initialization
Stephen Morris
stephen at isc.org
Fri Jun 24 16:18:34 UTC 2011
On 24/06/2011 16:35, Jeremy C. Reed wrote:
> On Fri, 24 Jun 2011, Stephen Morris wrote:
>
>>>> B10_LOGGER_ROOT
>>>
>>> Any example of what that does? I set it in my environment to
>>> B10_LOGGER_ROOT=Jeremy and I see no change.
>>>
>>>> B10_LOGGER_SEVERITY
>>>
>>>> B10_LOGGER_DBGLEVEL
>>>
>>>> B10_LOGGER_LOCALMSG
>>
>> These only work in the form of initLogger() call used in unit tests
>> (where there is no access to a configuration database, e.g. try running
>> the datasrc unit tests.
>
>
> Okay I am still confused. I don't see B10_LOGGER_ defined in
> environment by anything and I only see it used in
> src/lib/log/logger_support.cc.
If nothing is defined, defaults are taken: "bind10" is the default for
the root name, "INFO" is the default severity, 0 the default debug
level, and no local message file.
In most cases there is no need to define them. But if you are tracking
down some problem that manifests itself in a unit test, it may well be
useful to enable a finer level of logging.
> How does an admin using BIND 10 tell it to only log a certain severity
> category (or higher)? Is this documented? Is the behavior to be a
> single severity (I think no since I see multiple) or that and any
> higher?
>
> How does any admin configure the debug level number? Is this documented?
The writing of logging configuration documentation is in the current
sprint (ticket 1011).
Stephen
More information about the bind10-dev
mailing list