![](http://www.gnu-darwin.org/hexley-gd-sm.png)
|
Class Log4r::Logger
|
In: |
log4r/staticlogger.rb
log4r/staticlogger.rb
log4r/staticlogger.rb
log4r/staticlogger.rb
|
Parent: |
Object
|
|
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
==,
[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)
|
Parses name for location in heiarchy, sets the parent, and deals with level
inheritance
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.
|