Class: Logback::PatternLayout
- Inherits:
-
JPatternLayout
- Object
- Logback::PatternLayout
- Defined in:
- lib/logback.rb
Overview
Extends ch.qos.logback.classic.PatternLayout with a block initializer.
Instance Method Summary collapse
-
#initialize(pattern = DEFAULT_PATTERN) {|_self| ... } ⇒ PatternLayout
constructor
Sets context and pattern, yields self to block, and calls self.start.
Constructor Details
#initialize(pattern = DEFAULT_PATTERN) {|_self| ... } ⇒ PatternLayout
Sets context and pattern, yields self to block, and calls self.start
176 177 178 179 180 181 182 |
# File 'lib/logback.rb', line 176 def initialize( pattern=DEFAULT_PATTERN ) super() self.context = Logback.context self.pattern = pattern yield( self ) if block_given? Util.start( self ) end |