Sha256: fa9749da39f362597445bf9d4f3bf099fd904283b9f29d491f7601408f8fa9d3

Contents?: true

Size: 935 Bytes

Versions: 5

Compression:

Stored size: 935 Bytes

Contents

class Birling
  # == Submodules ===========================================================
  
  autoload(:Formatter, 'birling/formatter')
  autoload(:Logger, 'birling/logger')
  autoload(:Support, 'birling/support')
  
  # == Module Methods =======================================================
  
  # Opens a new log file at the given path with options:
  # * encoding: The encoding of the file (default: 'UTF8')
  # * period: The rotation period to use (optional)
  # * retain_count: How many log files to retain when rotating (optional)
  # * retain_period: How long rotated log files are retained for (optional)
  # * formatter: Custom log formatter (optional)
  # * program: Name of program being logged (optional)
  # * time_source: Source of time to use (optional)
  # * path_format: The strftime-compatible format for the path (optional)
  def self.open(path, options = nil)
    Birling::Logger.new(path, options)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
birling-0.3.1 lib/birling.rb
birling-0.3.0 lib/birling.rb
birling-0.2.2 lib/birling.rb
birling-0.2.1 lib/birling.rb
birling-0.2.0 lib/birling.rb