Class: Webroar::WLogger
- Inherits:
-
Object
- Object
- Webroar::WLogger
- Defined in:
- lib/wlogger.rb
Overview
Logging messages
Class Method Summary collapse
Class Method Details
.debug(str) ⇒ Object
36 37 38 |
# File 'lib/wlogger.rb', line 36 def debug(str) log_to_file("Debug: " + str.to_s) if @@debug_msg end |
.error(str) ⇒ Object
32 33 34 |
# File 'lib/wlogger.rb', line 32 def error(str) log_to_file("Error: " + str.to_s) end |
.info(str) ⇒ Object
28 29 30 |
# File 'lib/wlogger.rb', line 28 def info(str) log_to_file("Info: " + str.to_s) end |
.set_log_file(log_file) ⇒ Object
23 24 25 26 |
# File 'lib/wlogger.rb', line 23 def set_log_file(log_file) @@log_file = log_file.freeze @@debug_msg = true end |