Module: DefaultLogger
- Included in:
- Logfile, MatlabQueue, RPipe
- Defined in:
- lib/default_logger.rb
Overview
Setup Command and General Logs to point to STDOUT if not defined.
Instance Method Summary collapse
Instance Method Details
#setup_logger ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/default_logger.rb', line 5 def setup_logger %w{$Log $CommandLog}.each do |log| unless eval(log) eval("#{log} = Log4r::Logger.new('output')") eval("#{log}.add Log4r::StdoutOutputter.new(:stdout)") end end end |