class

Log::Builder

Inherits Log::Configuration / Reference / Object

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.

Instance methods

bind(source : String, level : Severity, backend : Backend) : Nil

Binds a source pattern to a backend for all logs that are of severity equal or higher to level.

Source
clear

Removes all existing bindings.

Source
for(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.

Source