lib/tanga_services/logger.rb in tanga_services-0.0.5 vs lib/tanga_services/logger.rb in tanga_services-0.0.7

- old
+ new

@@ -48,9 +48,13 @@ fail ArgumentError, 'must have application_name set' unless @logger fail ArgumentError, 'we just log hashes' unless hash.is_a?(Hash) data = { level: level, object: hash } @logger.send(level, data.to_json) end + + def self.method_missing(method, *args, &block) + logger.send(method, *args, &block) + end end # Convience access to logger def self.logger Logger