Method: Puppet::Application#setup_logs
- Defined in:
- lib/puppet/application.rb
#setup_logs ⇒ void
This method returns an undefined value.
Setup logging. By default the ‘console` log destination will only be created if `debug` or `verbose` is specified on the command line. Override to customize the logging behavior.
454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/puppet/application.rb', line 454 def setup_logs handle_logdest_arg(Puppet[:logdest]) unless [:setdest] unless [:setdest] if [:debug] || [:verbose] Puppet::Util::Log.newdestination(:console) end end set_log_level Puppet::Util::Log.setup_default unless [:setdest] end |