class Rex::Logging::Sinks::Flatfile
This class implements the LogSink
interface and backs it against a file on disk.
Public Class Methods
new(file)
click to toggle source
Creates a flatfile log sink instance that will be configured to log to the supplied file path.
# File lib/rex/logging/sinks/flatfile.rb, line 19 def initialize(file) self.fd = File.new(file, "a") end