module RJack::Logback::AppenderUtil

Utility implementation mixin for Appenders.

Constants

Charset

Public Instance Methods

encoding=( enc ) click to toggle source
# File lib/rjack-logback.rb, line 217
def encoding=( enc )
  self.encoder.charset = Charset::forName( enc )
end
finish( &block ) click to toggle source

Yield to block, then start.

# File lib/rjack-logback.rb, line 212
def finish( &block )
  block.call( self ) unless block.nil?
  Util.start( self )
end
set_defaults() click to toggle source

Set appender defaults.

# File lib/rjack-logback.rb, line 205
def set_defaults
  self.context = Logback.context
  self.name = self.class.name
  self.layout = @@default_layout
end