class Anywhere::Logger

Constants

COLORS
LEVELS

Attributes

log_level[W]
prefix[RW]

Public Class Methods

mutex() click to toggle source
# File lib/anywhere/logger.rb, line 27
def mutex
  @mutex ||= Mutex.new
end
new(attributes = {}) click to toggle source
# File lib/anywhere/logger.rb, line 36
def initialize(attributes = {})
  @attributes = attributes
end

Public Instance Methods

log_level() click to toggle source
# File lib/anywhere/logger.rb, line 32
def log_level
  @log_level ||= ::Logger::INFO
end
print_with_prefix(message) click to toggle source
stream() click to toggle source
# File lib/anywhere/logger.rb, line 44
def stream
  @attributes[:stream] ||= STDOUT
end