Class: MacLogger::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/mac_logger/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Logger

Returns a new instance of Logger.



6
7
8
9
10
11
12
# File 'lib/mac_logger/logger.rb', line 6

def initialize(options = {})
  opts = options.dup
  @options = {:title => "Ruby",
              :subtitle => "Program"}.merge(opts)
  @title = @options[:title]
  @subtitle = @options[:subtitle]
end

Instance Method Details

#debug(message) ⇒ Object



14
15
16
# File 'lib/mac_logger/logger.rb', line 14

def debug(message)
  log("#{DateTime.now}|DEBUG|#{message}")
end