Sha256: 2d69b5712b653ed49f6dd2367a375bcf66273bb19a15ea66c48991a013de75d3
Contents?: true
Size: 943 Bytes
Versions: 13
Compression:
Stored size: 943 Bytes
Contents
module Lumberjack # This is an abstract class for logging devices. Subclasses must implement the +write+ method and # may implement the +close+ and +flush+ methods if applicable. class Device load File.expand_path("../device/writer.rb", __FILE__) load File.expand_path("../device/log_file.rb", __FILE__) load File.expand_path("../device/rolling_log_file.rb", __FILE__) load File.expand_path("../device/date_rolling_log_file.rb", __FILE__) load File.expand_path("../device/size_rolling_log_file.rb", __FILE__) load File.expand_path("../device/null.rb", __FILE__) # Subclasses must implement this method to write a LogEntry. def write(entry) raise NotImplementedError end # Subclasses may implement this method to close the device. def close flush end # Subclasses may implement this method to flush any buffers used by the device. def flush end end end
Version data entries
13 entries across 11 versions & 4 rubygems