class RJack::Logback::PatternLayout

Extends ch.qos.logback.classic.PatternLayout with a block initializer.

Public Class Methods

new( pattern=DEFAULT_PATTERN ) { |self| ... } click to toggle source

Sets context and pattern, yields self to block, and calls self.start

Calls superclass method
# File lib/rjack-logback.rb, line 189
def initialize( pattern=DEFAULT_PATTERN )
  super()
  self.context = Logback.context
  self.pattern = pattern
  yield( self ) if block_given?
  Util.start( self )
end