class Bauxite::Loggers::NullLogger
Test logger class.
Test loggers handle test output format.
The default logger does not provide any output logging.
This default behavior can be overriden in a custom logger passed to the Context constructor (see Bauxite::Context.new). By convention, custom loggers are defined in the 'loggers/' directory.
Public Class Methods
new(options)
click to toggle source
Constructs a new null logger instance.
# File lib/bauxite/core/logger.rb, line 44 def initialize(options) @options = options end
Public Instance Methods
debug_prompt()
click to toggle source
Returns the prompt shown by the debug console (see Bauxite::Context#debug).
For example:
log.debug_prompt # => returns the debug prompt
# File lib/bauxite/core/logger.rb, line 68 def debug_prompt 'debug> ' end
log(s, type = :info)
click to toggle source
Logs the specified string.
type
, if specified, should be one of :error
,
:warning
, :info
(default), :debug
.
# File lib/bauxite/core/logger.rb, line 81 def log(s, type = :info) print s end
log_cmd(action) { || ... }
click to toggle source
Executes the given block in a logging context.
This default implementation does not provide any logging capabilities.
For example:
log.log_cmd('echo', 'Hello World!') do puts 'Hello World!' end # => echoes 'Hello World!'
# File lib/bauxite/core/logger.rb, line 59 def log_cmd(action) yield end
progress(value)
click to toggle source
Updates the progress of the current action.
# File lib/bauxite/core/logger.rb, line 73 def progress(value) end