Class: AwesomeLog

Inherits:
Logger
  • Object
show all
Defined in:
lib/awesomelog.rb

Instance Method Summary collapse

Instance Method Details

#debug(progname = nil, &block) ⇒ Object



5
6
7
8
# File 'lib/awesomelog.rb', line 5

def debug(progname = nil, &block)
  progname = prep_progname(progname,DEBUG)
  super(progname, &block)
end

#error(progname = nil, &block) ⇒ Object



20
21
22
23
# File 'lib/awesomelog.rb', line 20

def error(progname = nil, &block)
  progname = prep_progname(progname,ERROR)
  super(progname, &block)
end

#fatal(progname = nil, &block) ⇒ Object



25
26
27
28
# File 'lib/awesomelog.rb', line 25

def fatal(progname = nil, &block)
  progname = prep_progname(progname,FATAL)
  super(progname, &block)
end

#info(progname = nil, &block) ⇒ Object



10
11
12
13
# File 'lib/awesomelog.rb', line 10

def info(progname = nil, &block)
  progname = prep_progname(progname,INFO)
  super(progname, &block)
end

#unknown(progname = nil, &block) ⇒ Object



30
31
32
33
# File 'lib/awesomelog.rb', line 30

def unknown(progname = nil, &block)
  progname = prep_progname(progname,UNKNOWN)
  super(progname, &block)
end

#warn(progname = nil, &block) ⇒ Object



15
16
17
18
# File 'lib/awesomelog.rb', line 15

def warn(progname = nil, &block)
  progname = prep_progname(progname,WARN)
  super(progname, &block)
end