class Celluloid::Logger::WithBacktrace - celluloid-0.16.0 Documentation

# class Celluloid::Logger::WithBacktrace

### Public Class Methods

new(backtrace) click to toggle source

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

### Public Instance Methods

debug(string) click to toggle source

    # File lib/celluloid/logger.rb, line 8
    def debug(string)
      Celluloid.logger.debug(decorate(string))
    end

decorate(string) click to toggle source

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

error(string) click to toggle source

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

info(string) click to toggle source

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

warn(string) click to toggle source

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