Class: Console::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/console/logger.rb

Constant Summary collapse

DEFAULT_LEVEL =
1

Instance Method Summary collapse

Constructor Details

#initialize(output, **options) ⇒ Logger



28
29
30
# File 'lib/console/logger.rb', line 28

def initialize(output, **options)
	super(output, **options)
end

Instance Method Details

#failure(subject, exception, *arguments, &block) ⇒ Object



39
40
41
# File 'lib/console/logger.rb', line 39

def failure(subject, exception, *arguments, &block)
	fatal(subject, *arguments, Event::Failure.new(exception), &block)
end

#progress(subject, total, **options) ⇒ Object Also known as: measure



32
33
34
# File 'lib/console/logger.rb', line 32

def progress(subject, total, **options)
	Progress.new(self, subject, total, **options)
end