Class: S3restful::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/s3restful/log.rb

Constant Summary collapse

@@logger =
Logger.new(STDOUT)

Class Method Summary collapse

Class Method Details

.debug(msg) ⇒ Object



23
24
25
# File 'lib/s3restful/log.rb', line 23

def self.debug(msg)
  logger.debug("S3restful: #{msg}")
end

.error(msg) ⇒ Object



35
36
37
# File 'lib/s3restful/log.rb', line 35

def self.error(msg)
  logger.debug("S3restful: #{msg}")
end

.info(msg) ⇒ Object



27
28
29
# File 'lib/s3restful/log.rb', line 27

def self.info(msg)
  logger.debug("S3restful: #{msg}")
end

.levelObject



19
20
21
# File 'lib/s3restful/log.rb', line 19

def self.level
  logger.level
end

.level=(lev) ⇒ Object



15
16
17
# File 'lib/s3restful/log.rb', line 15

def self.level=(lev)
  logger.level = lev
end

.loggerObject



11
12
13
# File 'lib/s3restful/log.rb', line 11

def self.logger
  @@logger
end

.logger=(log) ⇒ Object



7
8
9
# File 'lib/s3restful/log.rb', line 7

def self.logger=(log)
  @@logger = log
end

.warn(msg) ⇒ Object



31
32
33
# File 'lib/s3restful/log.rb', line 31

def self.warn(msg)
  logger.debug("S3restful: #{msg}")
end