class Log::Builder
inherits Reference
¶
A Log::Builder
creates Log
instances for a given source.
It allows you to bind sources and patterns to a given backend.
Already created Log
will be reconfigured as needed.
Included modules
Log::Configuration
Methods¶
#bind(source : String, level : Severity, backend : Backend)
¶
(source : String, level : Severity, backend : Backend)
Binds a source pattern to a backend for all logs that are of severity equal or higher to level.
#for(source : String) : Log
¶
(source : String) : Log
Returns a Log
for the given source with a severity level and
backend according to the bindings in self.
If new bindings are applied, the existing Log
instances will be
reconfigured.
Calling this method multiple times with the same value will return
the same object.