You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
require 'logger'
|
|
|
|
class Logging
|
|
def self.log
|
|
if @logger.nil?
|
|
@logger = Logger.new STDOUT
|
|
@logger.level = Logger::DEBUG
|
|
@logger.datetime_format = '%Y-%m-%d %H:%M:%S '
|
|
end
|
|
@logger
|
|
end
|
|
end
|