Class: EntityLogger
- Inherits:
-
Object
- Object
- EntityLogger
- Defined in:
- app/aides/entity_logger.rb
Instance Method Summary collapse
- #error(message) ⇒ Object
- #info(message) ⇒ Object
-
#initialize(object) ⇒ EntityLogger
constructor
A new instance of EntityLogger.
- #warn(message) ⇒ Object
Constructor Details
#initialize(object) ⇒ EntityLogger
Returns a new instance of EntityLogger.
4 5 6 |
# File 'app/aides/entity_logger.rb', line 4 def initialize(object) @object = object end |
Instance Method Details
#error(message) ⇒ Object
16 17 18 |
# File 'app/aides/entity_logger.rb', line 16 def error() append_log("[ERROR] #{}") end |
#info(message) ⇒ Object
8 9 10 |
# File 'app/aides/entity_logger.rb', line 8 def info() append_log() end |
#warn(message) ⇒ Object
12 13 14 |
# File 'app/aides/entity_logger.rb', line 12 def warn() append_log("[WARNING] #{}") end |