Class: Nutella::NutellaLoggerRemote
Instance Method Summary
collapse
#initialize
Instance Method Details
#debug(message, code = nil) ⇒ Object
5
6
7
8
|
# File 'lib/logging/nutella_logger-remote.rb', line 5
def debug(message, code=nil)
@log.debug(message)
code
end
|
#error(message, code = nil) ⇒ Object
25
26
27
28
|
# File 'lib/logging/nutella_logger-remote.rb', line 25
def error(message, code=nil)
@log.error(ANSI.red + message + ANSI.reset)
code
end
|
#info(message, code = nil) ⇒ Object
10
11
12
13
|
# File 'lib/logging/nutella_logger-remote.rb', line 10
def info(message, code=nil)
@log.info(message)
code
end
|
#success(message, code = nil) ⇒ Object
15
16
17
18
|
# File 'lib/logging/nutella_logger-remote.rb', line 15
def success(message, code=nil)
@log.info(ANSI.green + message + ANSI.reset)
code
end
|
#warn(message, code = nil) ⇒ Object
20
21
22
23
|
# File 'lib/logging/nutella_logger-remote.rb', line 20
def warn(message, code=nil)
@log.warn(ANSI.yellow + message + ANSI.reset)
code
end
|