Async::ContainerSourceAsyncContainerNotifyConsole

class Console

Implements a general process readiness protocol with output to the local console.

Definitions

def self.open!(logger = ::Console)

Open a notification client attached to the current console.

Implementation

def self.open!(logger = ::Console)
	self.new(logger)
end

def initialize(logger)

Initialize the notification client.

Signature

parameter logger Console::Logger

The console logger instance to send messages to.

Implementation

def initialize(logger)
	@logger = logger
end

def send(level: :debug, **message)

Send a message to the console.

Implementation

def send(level: :debug, **message)
	@logger.send(level, self) {message}
end

def error!(text, **message)

Send an error message to the console.

Implementation

def error!(text, **message)
	send(status: text, level: :error, **message)
end