(protected) new Message(style)
Provides the means for isomorphic styled output to the console.
Parameters:
Name | Type | Description |
---|---|---|
style |
ConsoleStyleConfig | a style config |
Members
message :string
a message string
Type:
- string
styles :Array.<string>
css style strings
Type:
- Array.<string>
Methods
addMessage(msg)
Adds a message
Parameters:
Name | Type | Description |
---|---|---|
msg |
string | number | module:logger.Message | a message |
addMessages(messages) → {module:logger.Message}
Adds messages
Parameters:
Name | Type | Description |
---|---|---|
messages |
Array.<(string|number|module:logger.Message)> | a collection of messages |
Returns:
returns self