Module: Logging::RailsCompat

### Home Classes Methods

### In Files

- lib/logging/rails_compat.rb

### Methods

- #formatter
- #silence

### Files

- History.txt

### Class/Module Index

Quicksearch

- Logging
- Logging::Appender
- Logging::Appenders
- Logging::Appenders::Buffering
- Logging::Appenders::File
- Logging::Appenders::IO
- Logging::Appenders::RollingFile
- Logging::Appenders::RollingFile::Roller
- Logging::Appenders::Stderr
- Logging::Appenders::Stdout
- Logging::Appenders::StringIo
- Logging::Appenders::Syslog
- Logging::ColorScheme
- Logging::Filter
- Logging::Filters
- Logging::Filters::Level
- Logging::Layout
- Logging::Layouts
- Logging::Layouts::Basic
- Logging::Layouts::Parseable
- Logging::Layouts::Pattern
- Logging::Logger
- Logging::MappedDiagnosticContext
- Logging::NestedDiagnosticContext
- Logging::Proxy
- Logging::RailsCompat
- Logging::Repository
- Logging::Repository::Singleton
- Logging::RootLogger
- RSpec
- RSpec::Core
- RSpec::Core::Configuration
- RSpec::LoggingHelper
- RSpec::LoggingHelper
- Spec
- Spec::Runner
- Spec::Runner::Configuration
- Object
- Object::LoggingHelper
- File
- FileUtils
- Module
- ReentrantMutex
- String

No matching classes.

# Logging::RailsCompat

Rails compatibility module.

The ActiveSupport gem adds a few methods to the default Ruby logger, and some Rails extensions expect these methods to exist. Those methods are implemented in this module and included in the Logging::Logger class when the ActiveSupport gem is present.

### Public Instance Methods

formatter() click to toggle source

A no-op implementation of the `formatter` method.

    # File lib/logging/rails_compat.rb, line 16
    def formatter; end

silence( *args ) click to toggle source

A no-op implementation of the `silence` method. Setting of log levels should be done during the Logging configuration. It is the author's opinion that overriding the log level programmatically is a logical error.

Please see github.com/TwP/logging/issues/11 for a more detail discussion of the issue.

    # File lib/logging/rails_compat.rb, line 26
    def silence( *args )
      yield self
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.