Class: Celluloid::Internals::Logger::WithBacktrace

### Home Classes Methods

### In Files

- lib/celluloid/internals/logger.rb

### Parent

Object

### Methods

- ::new
- #debug
- #decorate
- #error
- #info
- #warn

### Class/Module Index

Quicksearch

- Celluloid
- Celluloid::Incident
- Celluloid::IncidentLogger
- Celluloid::IncidentLogger::Severity
- Celluloid::IncidentReporter
- Celluloid::IncidentReporter::Formatter
- Celluloid::Internals
- Celluloid::Internals::CPUCounter
- Celluloid::Internals::CallChain
- Celluloid::Internals::Handler
- Celluloid::Internals::Handlers
- Celluloid::Internals::Links
- Celluloid::Internals::Logger
- Celluloid::Internals::Logger::WithBacktrace
- Celluloid::Internals::Method
- Celluloid::Internals::Properties
- Celluloid::Internals::Receiver
- Celluloid::Internals::Receivers
- Celluloid::Internals::Registry
- Celluloid::Internals::Response
- Celluloid::Internals::Response::Block
- Celluloid::Internals::Response::Error
- Celluloid::Internals::Response::Success
- Celluloid::Internals::Signals
- Celluloid::Internals::Stack
- Celluloid::Internals::Stack::ActorState
- Celluloid::Internals::Stack::CellState
- Celluloid::Internals::Stack::DisplayBacktrace
- Celluloid::Internals::Stack::Dump
- Celluloid::Internals::Stack::Summary
- Celluloid::Internals::Stack::TaskState
- Celluloid::Internals::Stack::ThreadState
- Celluloid::Internals::TaskSet
- Celluloid::Internals::ThreadHandle
- Celluloid::Internals::UUID
- Celluloid::LogEvent
- Celluloid::Notifications
- Celluloid::Notifications::Fanout
- Celluloid::Notifications::Subscriber
- Celluloid::Probe
- Celluloid::RingBuffer

No matching classes.

# Celluloid::Internals::Logger::WithBacktrace

### Public Class Methods

new(backtrace) click to toggle source

    # File lib/celluloid/internals/logger.rb, line 5
    def initialize(backtrace)
      @backtrace = backtrace
    end

### Public Instance Methods

debug(string) click to toggle source

    # File lib/celluloid/internals/logger.rb, line 9
    def debug(string)
      Celluloid.logger.debug(decorate(string)) if $CELLULOID_DEBUG
    end

decorate(string) click to toggle source

    # File lib/celluloid/internals/logger.rb, line 25
    def decorate(string)
      [string, @backtrace].join("\n\t")
    end

error(string) click to toggle source

    # File lib/celluloid/internals/logger.rb, line 21
    def error(string)
      Celluloid.logger.error(decorate(string))
    end

info(string) click to toggle source

    # File lib/celluloid/internals/logger.rb, line 13
    def info(string)
      Celluloid.logger.info(decorate(string))
    end

warn(string) click to toggle source

    # File lib/celluloid/internals/logger.rb, line 17
    def warn(string)
      Celluloid.logger.warn(decorate(string))
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.