1# -*- coding: binary -*- 2module Rex 3module Logging 4module Sinks 5 6### 7# 8# This class implements the LogSink interface and backs it against a 9# file on disk. 10# 11### 12class Flatfile < Rex::Logging::Sinks::Stream 13 14 # 15 # Creates a flatfile log sink instance that will be configured to log to 16 # the supplied file path. 17 # 18 def initialize(file) 19 super(File.new(file, 'a')) 20 end 21 22end 23 24end end end 25 26