Module: DatTCP::Logger::Debug
- Defined in:
- lib/dat-tcp/logger.rb
Class Method Summary collapse
Class Method Details
.new ⇒ Object
19 20 21 22 23 24 |
# File 'lib/dat-tcp/logger.rb', line 19 def self.new ::Logger.new(STDOUT).tap do |logger| logger.progname = "[#{self.name}]" logger.datetime_format = "%m/%d/%Y %H:%M:%S%p " end end |