class Fluent::LogDeviceIO
This class delegetes some methods which are used in `Fluent::Logger` to a instance variable(`dev`) in `Logger::LogDevice` class github.com/ruby/ruby/blob/7b2d47132ff8ee950b0f978ab772dee868d9f1b0/lib/logger.rb#L661
Public Instance Methods
flush()
click to toggle source
Calls superclass method
# File lib/fluent/log.rb, line 605 def flush if @dev.respond_to?(:flush) @dev.flush else super end end
reopen(path, mode)
click to toggle source
Calls superclass method
# File lib/fluent/log.rb, line 629 def reopen(path, mode) if mode != 'a' raise "Unsupported mode: #{mode}" end super(path) end
sync=(v)
click to toggle source
Calls superclass method
# File lib/fluent/log.rb, line 621 def sync=(v) if @dev.respond_to?(:sync=) @dev.sync = v else super end end
tty?()
click to toggle source
Calls superclass method
# File lib/fluent/log.rb, line 613 def tty? if @dev.respond_to?(:tty?) @dev.tty? else super end end