Class: Rancher::Shell::Logger
- Inherits:
-
Object
- Object
- Rancher::Shell::Logger
- Defined in:
- lib/rancher/shell/logger.rb
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #info(message) ⇒ Object
- #out(message) ⇒ Object
- #warn(message) ⇒ Object
Instance Method Details
#debug(message) ⇒ Object
4 5 6 |
# File 'lib/rancher/shell/logger.rb', line 4 def debug $stdout.puts "[#{DateTime.now.strftime '%Y-%m-%d %H:%M:%S'}] DEBUG -- : #{}" end |
#error(message) ⇒ Object
12 13 14 |
# File 'lib/rancher/shell/logger.rb', line 12 def error $stderr.puts "[#{DateTime.now.strftime '%Y-%m-%d %H:%M:%S'}] ERROR -- : #{}" end |
#info(message) ⇒ Object
8 9 10 |
# File 'lib/rancher/shell/logger.rb', line 8 def info $stdout.puts "[#{DateTime.now.strftime '%Y-%m-%d %H:%M:%S'}] INFO -- : #{}" end |
#out(message) ⇒ Object
20 21 22 |
# File 'lib/rancher/shell/logger.rb', line 20 def out $stdout.puts "[#{DateTime.now.strftime '%Y-%m-%d %H:%M:%S'}] -- : #{}" end |
#warn(message) ⇒ Object
16 17 18 |
# File 'lib/rancher/shell/logger.rb', line 16 def warn $stderr.puts "[#{DateTime.now.strftime '%Y-%m-%d %H:%M:%S'}] WARN -- : #{}" end |