Class: ThinClient::Log
- Inherits:
-
Object
- Object
- ThinClient::Log
- Defined in:
- lib/thinclient/mylogger.rb
Class Method Summary collapse
- .debug(str) ⇒ Object
- .error(str) ⇒ Object
- .fatal(str) ⇒ Object
- .info(str) ⇒ Object
- .init ⇒ Object
- .warn(str) ⇒ Object
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 |
.init ⇒ Object
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 |