Module: DL::LoggerMixin
- Included in:
- App::Config
- Defined in:
- lib/app-ctx/dlog.rb
Instance Method Summary collapse
- #debug(*args) ⇒ Object
- #error(*args) ⇒ Object
- #fatal(*args) ⇒ Object
- #info(*args) ⇒ Object
- #log_level ⇒ Object
- #logger ⇒ Object
- #set_log_level(level) ⇒ Object
- #warn(*args) ⇒ Object
Instance Method Details
#debug(*args) ⇒ Object
142 143 144 |
# File 'lib/app-ctx/dlog.rb', line 142 def debug *args logger.debug *args end |
#error(*args) ⇒ Object
151 152 153 |
# File 'lib/app-ctx/dlog.rb', line 151 def error *args logger.error *args end |
#fatal(*args) ⇒ Object
154 155 156 |
# File 'lib/app-ctx/dlog.rb', line 154 def fatal *args logger.fatal *args end |
#info(*args) ⇒ Object
145 146 147 |
# File 'lib/app-ctx/dlog.rb', line 145 def info *args logger.info *args end |
#log_level ⇒ Object
157 158 159 |
# File 'lib/app-ctx/dlog.rb', line 157 def log_level logger.level end |
#logger ⇒ Object
138 139 140 |
# File 'lib/app-ctx/dlog.rb', line 138 def logger @dl_class_logger ||= DL.logger(self) # class logger end |
#set_log_level(level) ⇒ Object
160 161 162 |
# File 'lib/app-ctx/dlog.rb', line 160 def set_log_level level logger.level= level end |
#warn(*args) ⇒ Object
148 149 150 |
# File 'lib/app-ctx/dlog.rb', line 148 def warn *args logger.warn *args end |