When an event is logged, the logger will create a LogRecord
for this event, and pass this record to all registered handlers. Single handlers
might or might not log those records at their own discretion, and depending on
additional restrictions such as filters specified at handler level.
Note: The log level of the given handler (XLogHandler::Level) will
not be touched. In particular, it will not be set to the logger's log level. It's
the responsibility of the component which knits a logger with one or more
log handlers to ensure that all loggers have appropriate levels set.
Parameter LogHandler
the handler to add to the list of handlers. The call is ignored if this
parameter is NULL.
determines whether logger instance would produce any output for the given level.
The method can be used to optimize performance as maybe complex parameter evaluation
in the log calls can be omitted if isLoggable evaluates to false.
Parameter Level
level to be checked against
Returns
true if there would be some output for this XLogger for the given level, false
otherwise. Note that a return value of false could also indicate that the logger
does not have any log handlers associated with it.