Method: Backup::Logger#start!
- Defined in:
- lib/backup/logger.rb
#start! ⇒ Object
The Logger is available as soon as Backup is loaded, and stores all messages it receives. Since the Logger may be configured via the command line and/or the user’s config.rb, no messages are sent until configuration can be completed. (see CLI#perform)
Once configuration is completed, this method is called to activate all enabled loggers and send them any messages that have been received up to this point. From this point onward, these loggers will be sent all messages as soon as they’re received.
167 168 169 170 171 172 173 174 |
# File 'lib/backup/logger.rb', line 167 def start! @config.loggers.each do |logger| @loggers << logger.class.new(logger.) if logger.enabled? end .each do || @loggers.each {|logger| logger.log() } end end |