lib/rubix/log.rb in rubix-0.0.2 vs lib/rubix/log.rb in rubix-0.0.3

- old
+ new

@@ -12,11 +12,10 @@ end def self.default_logger @logger = Logger.new(default_log_path) @logger.level = default_log_severity - p default_log_severity @logger end def self.default_log_severity case @@ -48,36 +47,32 @@ end end module Logs - def log_name - @log_name - end - def debug *args return unless Rubix.logger - Rubix.logger.log(Logger::DEBUG, args.join(' '), log_name) + Rubix.logger.log(Logger::DEBUG, args.join(' ')) end def info *args return unless Rubix.logger - Rubix.logger.log(Logger::INFO, args.join(' '), log_name) + Rubix.logger.log(Logger::INFO, args.join(' ')) end def warn *args return unless Rubix.logger - Rubix.logger.log(Logger::WARN, args.join(' '), log_name) + Rubix.logger.log(Logger::WARN, args.join(' ')) end def error *args return unless Rubix.logger - Rubix.logger.log(Logger::ERROR, args.join(' '), log_name) + Rubix.logger.log(Logger::ERROR, args.join(' ')) end def fatal *args return unless Rubix.logger - Rubix.logger.log(Logger::FATAL, args.join(' '), log_name) + Rubix.logger.log(Logger::FATAL, args.join(' ')) end end end