Class: ThinClient::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/thinclient/mylogger.rb

Class Method Summary collapse

Class Method Details

.debug(str) ⇒ Object



16
17
18
19
# File 'lib/thinclient/mylogger.rb', line 16

def self.debug(str)
  init()
  @myLogger.debug(str)
end

.error(str) ⇒ Object



21
22
23
24
# File 'lib/thinclient/mylogger.rb', line 21

def self.error(str)
  init()
  @myLogger.error(str)
end

.fatal(str) ⇒ Object



31
32
33
34
# File 'lib/thinclient/mylogger.rb', line 31

def self.fatal(str)
  init()
  @myLogger.fatal(str)
end

.info(str) ⇒ Object



11
12
13
14
# File 'lib/thinclient/mylogger.rb', line 11

def self.info(str)
  init()
  @myLogger.info(str)
end

.initObject



6
7
8
9
# File 'lib/thinclient/mylogger.rb', line 6

def self.init()
  @myLogger = Logger.new(File.new(File.join("ThinClient.log"), "a"))
  @myLogger.datetime_format = "%m%d-%H:%M:%S"
end

.warn(str) ⇒ Object



26
27
28
29
# File 'lib/thinclient/mylogger.rb', line 26

def self.warn(str)
  init()
  @myLogger.warn(str)
end