Class: Logging::Appenders::Stderr

### Home Classes Methods

### In Files

- lib/logging/appenders/console.rb

### Parent

Logging::Appenders::IO

### Methods

- ::new

### 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::Appenders::Stderr

This class provides an Appender that can write to STDERR.

### Public Class Methods

new( name = 'stderr' ) click to toggle source
new( :layout => layout )
new( name = 'stderr', :level => 'warn' )

Creates a new Stderr Appender. The name 'stderr' will be used unless another is given. Optionally, a layout can be given for the appender to use (otherwise a basic appender will be created) and a log level can be specified.

Options:

    :layout   => the layout to use when formatting log events
    :level    => the level at which to log

    # File lib/logging/appenders/console.rb, line 71
    def initialize( *args )
      opts = Hash === args.last ? args.pop : {}
      name = args.empty? ? 'stderr' : args.shift

      opts[:encoding] = STDERR.external_encoding if STDERR.respond_to? :external_encoding

      super(name, STDERR, opts)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.