Sha256: cd0a987c24cd9477a54955f9555409104a441fdba752c8ed4a1a9d64c379daa3

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 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 # Logger
  end # Logger
end # Ramaze

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ramaze-2011.12.28 lib/ramaze/log/logger.rb
ramaze-2011.10.23 lib/ramaze/log/logger.rb
ramaze-2011.07.25 lib/ramaze/log/logger.rb