Class: Flor::Storage::DbLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/flor/unit/storage.rb

Instance Method Summary collapse

Constructor Details

#initialize(unit) ⇒ DbLogger

Returns a new instance of DbLogger.



895
# File 'lib/flor/unit/storage.rb', line 895

def initialize(unit); @unit = unit; end

Instance Method Details

#error(msg) ⇒ Object



898
# File 'lib/flor/unit/storage.rb', line 898

def error(msg); @unit.logger.db_log(:error, msg); end

#info(msg) ⇒ Object



897
# File 'lib/flor/unit/storage.rb', line 897

def info(msg); @unit.logger.db_log(:info, msg); end