Module: Logging

Included in:
BullServerController
Defined in:
lib/bull/server.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loggerObject



46
47
48
# File 'lib/bull/server.rb', line 46

def self.logger
    @logger ||= EMLogger.new(File.join(File.expand_path(File.dirname(__FILE__)), 'log', 'log.txt'), count: 10, size: 1024000, level: Logger::DEBUG)
end

.stdout_loggerObject



54
55
56
# File 'lib/bull/server.rb', line 54

def self.stdout_logger
    @stdout_logger ||= EMLogger.new(STDOUT, level: Logger::DEBUG)
end

Instance Method Details

#loggerObject



42
43
44
# File 'lib/bull/server.rb', line 42

def logger
    Logging.logger
end

#stdout_loggerObject



50
51
52
# File 'lib/bull/server.rb', line 50

def stdout_logger
    Logging.stdout_logger
end