Class: Goz::Logger
- Inherits:
-
Object
- Object
- Goz::Logger
- Defined in:
- lib/goz/logger.rb
Overview
Constant Summary collapse
- DEFAULT_LOGDEV =
Default log device to use.
$stdout
- @@logger =
nil
Class Method Summary collapse
-
.debug(sender, message) ⇒ Object
Send
debug
log message. -
.error(sender, message) ⇒ Object
Send
error
log message. -
.fatal(sender, message) ⇒ Object
Send
fatal
log message. -
.info(sender, message) ⇒ Object
Send info log message.
-
.warn(sender, message) ⇒ Object
Send warn log message.
Class Method Details
.debug(sender, message) ⇒ Object
Send debug
log message.
Params:
sender
-
String
sender of log message. message
-
String
message to send to logger.
39 40 41 |
# File 'lib/goz/logger.rb', line 39 def self.debug(sender, ) self.instance.debug "#{sender} - #{}" end |
.error(sender, message) ⇒ Object
Send error
log message.
Params:
sender
-
String
sender of log message. message
-
String
message to send to logger.
50 51 52 |
# File 'lib/goz/logger.rb', line 50 def self.error(sender, ) self.instance.error "#{sender} - #{}" end |
.fatal(sender, message) ⇒ Object
Send fatal
log message.
Params:
sender
-
String
sender of log message. message
-
String
message to send to logger.
61 62 63 |
# File 'lib/goz/logger.rb', line 61 def self.fatal(sender, ) self.instance.fatal "#{sender} - #{}" end |
.info(sender, message) ⇒ Object
Send info log message.
Params:
sender
-
String
sender of log message. message
-
String
message to send to logger.
72 73 74 |
# File 'lib/goz/logger.rb', line 72 def self.info(sender, ) self.instance.info "#{sender} - #{}" end |
.warn(sender, message) ⇒ Object
Send warn log message.
Params:
sender
-
String
sender of log message. message
-
String
message to send to logger.
83 84 85 |
# File 'lib/goz/logger.rb', line 83 def self.warn(sender, ) self.instance.warn "#{sender} - #{}" end |