Module: GitTopic::Logger
- Defined in:
- lib/git_topic/logger.rb
Class Method Summary collapse
Class Method Details
.add(method, undecorated_message, *args, &block) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/git_topic/logger.rb', line 19 def add method, , *args, &block return if GitTopic.global_opts[:no_log] = unless .blank? sprintf '%-5s %s %s', method.upcase, DateTime.now.strftime( '[%d %b %Y %H:%M:%S]' ), else '' end logger.send method, , *args, &block end |