Message

logger. Message

(protected) new Message(style)

Source:

Provides the means for isomorphic styled output to the console.

Parameters:
Name Type Description
style ConsoleStyleConfig

a style config

Members

message :string

Source:

a message string

Type:
  • string

styles :Array.<string>

Source:

css style strings

Type:
  • Array.<string>

Methods

addMessage(msg)

Source:

Adds a message

Parameters:
Name Type Description
msg string | number | module:logger.Message

a message

addMessages(messages) → {module:logger.Message}

Source:

Adds messages

Parameters:
Name Type Description
messages Array.<(string|number|module:logger.Message)>

a collection of messages

Returns:

returns self

Type
module:logger.Message