module Crossdomain::Logging

Public Class Methods

logger() click to toggle source
# File lib/crossdomain/logging.rb, line 14
def self.logger
  @logger ||= begin
    log = Logger.new(STDOUT)
    log.level = Logger::INFO
    log.formatter = Pretty.new
    log
  end
end
logger=(log) click to toggle source
# File lib/crossdomain/logging.rb, line 23
def self.logger=(log)
  @logger = (log ? log : Logger.new('/dev/null'))
end

Public Instance Methods

logger() click to toggle source
# File lib/crossdomain/logging.rb, line 27
def logger
  Crossdomain::Logging.logger
end