Module: Azure::Core::Logger
- Defined in:
- lib/azure/core/utility.rb
Overview
Logger
Class Method Summary collapse
- .error(msg) ⇒ Object
- .error_with_exit(msg) ⇒ Object
- .exception_message(msg) ⇒ Object
- .info(msg) ⇒ Object
- .success(msg) ⇒ Object
- .warn(msg) ⇒ Object
Class Method Details
.error(msg) ⇒ Object
101 102 103 104 |
# File 'lib/azure/core/utility.rb', line 101 def error(msg) puts msg.bold.red msg end |
.error_with_exit(msg) ⇒ Object
91 92 93 94 |
# File 'lib/azure/core/utility.rb', line 91 def error_with_exit(msg) puts msg.bold.red raise msg.bold.red end |
.exception_message(msg) ⇒ Object
106 107 108 109 |
# File 'lib/azure/core/utility.rb', line 106 def (msg) print msg.bold.red raise msg.bold.red end |
.info(msg) ⇒ Object
87 88 89 |
# File 'lib/azure/core/utility.rb', line 87 def info(msg) puts msg.bold.white end |
.success(msg) ⇒ Object
111 112 113 114 |
# File 'lib/azure/core/utility.rb', line 111 def success(msg) msg_with_new_line = msg + "\n" print msg_with_new_line.green end |
.warn(msg) ⇒ Object
96 97 98 99 |
# File 'lib/azure/core/utility.rb', line 96 def warn(msg) puts msg.yellow msg end |