Class: LogAddFunctions_2
- Inherits:
-
Object
- Object
- LogAddFunctions_2
- Defined in:
- lib/imperituroard/add_functions/logger/any_functions.rb
Instance Method Summary collapse
Instance Method Details
#datetimenow ⇒ Object
10 11 12 13 14 |
# File 'lib/imperituroard/add_functions/logger/any_functions.rb', line 10 def datetimenow d_curr = DateTime.now time_zone = 'Europe/Minsk' DateTime.now.to_s end |
#printer_texter(text, log_level) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/imperituroard/add_functions/logger/any_functions.rb', line 16 def printer_texter(text, log_level) if log_level == "debug" mess = {:datetime => datetimenow, :sdk => "imperituroard", :sdk_version => Imperituroard::VERSION, :message => text} p mess end end |