Sha256: 0d7957b5e1dfd42740653b8ca3b62dc7affd32714437b12b83a7eea96dd20f00

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby 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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-2011.01.30 lib/ramaze/log/logger.rb
ramaze-2011.01 lib/ramaze/log/logger.rb