Class Log4r::Logger
|
In: |
log4r/staticlogger.rb
log4r/repository.rb
log4r/loggerfactory.rb
log4r/logger.rb
|
Parent: |
Object
|
|
==,
[],
add,
additive=,
each,
each_logger,
get,
global,
is_root?,
level=,
log_internal,
new,
outputters=,
parent=,
remove,
root,
trace=,
[R] |
additive |
|
[R] |
fullname |
|
[R] |
level |
|
[R] |
name |
|
[R] |
outputters |
|
[R] |
parent |
|
[R] |
path |
|
[R] |
trace |
|
Returns the root logger. Identical to Logger.global
Returns the root logger. Identical to Logger.root
Get a logger with a fullname from the repository or nil if logger
wasn’t found.
Like Logger[] except that it raises NameError if
Logger wasn’t found.
Yields fullname and logger for every logger in the system.
Internal logging for Log4r components. Accepts
only blocks. To see such log events, create a logger named
‘log4r’ and give it an outputter.
Logger requires a name. The last 3 parameters
are:
level: | Do I have a level? (Otherwise, I’ll inherit my parent’s)
|
additive: | Am I additive?
|
trace: | Do I record the execution trace? (slows things a wee bit)
|
Set the logger level dynamically. Does not affect children.
Set the additivity of the logger dynamically. True or false.
Set whether the logger traces. Can be set dynamically. Defaults to false
and understands the strings ‘true’ and ‘false’.
Please don’t reset the parent
Set the Outputters dynamically by name or reference. Can be done any time.
Add outputters by name or by reference. Can be done any time.
Remove outputters from this logger by name only. Can be done any time.