Sha256: 8c175aa2897e22ef0599df39a55428ba6d2f2eb2cb7c5792937b0b5fb41f13db

Contents?: true

Size: 636 Bytes

Versions: 5

Compression:

Stored size: 636 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the MIT license.

require 'logger'

module Ramaze
  module Logger
    ##
    # Informer for the Stdlib Logger.
    #
    class Logger < ::Logger

      ##
      # Integration to Logging
      #
      # @param [String] tag
      # @param [Hash] args
      #
      def log(tag, *args)
        __send__(tag, args.join("\n"))
      end

      ##
      # Stub for compatibility
      #
      # @param [Hash] args
      def dev(*args)
        debug(*args)
      end
    end # Logger
  end # Logger
end # Ramaze

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ramaze-2023.01.06 lib/ramaze/log/logger.rb
ramaze-2012.12.08 lib/ramaze/log/logger.rb
ramaze-2012.12.08b lib/ramaze/log/logger.rb
ramaze-2012.04.14 lib/ramaze/log/logger.rb
ramaze-2012.03.07 lib/ramaze/log/logger.rb