Class: RJack::Logback::FileAppender
- Inherits:
-
JFileAppender
- Object
- RJack::Logback::FileAppender
- Includes:
- AppenderUtil
- Defined in:
- lib/rjack-logback.rb
Overview
Extends ch.qos.logback.core.FileAppender with a block initializer.
Constant Summary
Constants included from AppenderUtil
Instance Method Summary collapse
-
#initialize(file_name, append = true, &block) ⇒ FileAppender
constructor
Sets defaults, yields self to block, and calls self.start.
Methods included from AppenderUtil
#encoding=, #finish, #set_defaults
Constructor Details
#initialize(file_name, append = true, &block) ⇒ FileAppender
Sets defaults, yields self to block, and calls self.start
251 252 253 254 255 256 257 258 |
# File 'lib/rjack-logback.rb', line 251 def initialize( file_name, append = true, &block ) super() set_defaults self.file = file_name self.append = append self.encoding = "UTF-8" finish( &block ) end |