Sha256: 3a3537d43d6f060cf03528416eea84957b9ab5e59b481c39da3c335db1190f24

Contents?: true

Size: 449 Bytes

Versions: 22

Compression:

Stored size: 449 Bytes

Contents

require "logging"
module MagLove
  module Helper
    module LogHelper
      def info(message)
        logger.send(:info, message)
      end

      def debug(message)
        logger.send(:debug, message)
      end

      def error(message)
        logger.send(:error, message)
      end

      def error!(message)
        logger.send(:fatal, message)
        Kernel.exit
      end

      def logger
        Maglove.logger
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
maglove-2.0.11 lib/maglove/helper/log_helper.rb
maglove-2.0.10 lib/maglove/helper/log_helper.rb
maglove-2.0.9 lib/maglove/helper/log_helper.rb
maglove-2.0.8 lib/maglove/helper/log_helper.rb
maglove-2.0.7 lib/maglove/helper/log_helper.rb
maglove-1.1.5 lib/maglove/helper/log_helper.rb
maglove-1.1.4 lib/maglove/helper/log_helper.rb
maglove-1.1.3 lib/maglove/helper/log_helper.rb
maglove-2.0.4 lib/maglove/helper/log_helper.rb
maglove-2.0.2 lib/maglove/helper/log_helper.rb
maglove-2.0.1 lib/maglove/helper/log_helper.rb
maglove-1.1.2 lib/maglove/helper/log_helper.rb
maglove-2.0.0 lib/maglove/helper/log_helper.rb
maglove-1.1.1 lib/maglove/helper/log_helper.rb
maglove-1.1.0 lib/maglove/helper/log_helper.rb
maglove-1.0.9 lib/maglove/helper/log_helper.rb
maglove-1.0.8 lib/maglove/helper/log_helper.rb
maglove-1.0.7 lib/maglove/helper/log_helper.rb
maglove-1.0.5 lib/maglove/helper/log_helper.rb
maglove-1.0.4 lib/maglove/helper/log_helper.rb