kyletolle/everything-core

View on GitHub
lib/everything/logger/log_it.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Everything
  class Logger
    module LogIt
      def debug_it(message)
        Everything.logger.debug(class_name) { message }
      end

      def error_it(message)
        Everything.logger.error(class_name) { message }
      end

      def info_it(message)
        Everything.logger.info(class_name) { message }
      end

    private

      def class_name
        self.class.to_s
      end
    end
  end
end