Class: Octo::ApiLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/octocore-cassandra/helpers/api_logger.rb

Class Method Summary collapse

Class Method Details

.loggerObject



5
6
7
8
9
10
11
12
# File 'lib/octocore-cassandra/helpers/api_logger.rb', line 5

def self.logger
  if @_logger.nil?
    @_logger = Logger.new STDOUT
    @_logger.level = Logger::INFO
    @_logger.datetime_format = '%a %d-%m-%Y %H%M '
  end
  @_logger
end