Methods
error(…argn_arguments)
Prints an error message to the console channel, analogous to console.error.
- Method of: log.Channel
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
argn_arguments |
<repeatable> |
fromJSON(arg0_json)
Loads a log history from a JSON string and restores the internal HTML.
- Method of: log.Channel
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_json |
string
|
The JSON string to load. |
log(…argn_arguments)
Prints a log message to the console channel, analogous to console.log.
- Method of: log.Channel
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
argn_arguments |
<repeatable> |
print(arg0_type, argn_arguments)
Prints a message to the given console channel.
- Method of: log.Channel
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_type |
string
|
The console type. Either 'log'/'warn'/'error'. |
argn_arguments |
Array.<any>
|
The arguments passed to the log function |
save(arg0_file_path, arg1_optionsopt) → {string}
Saves the present log to a given file path. Returns the output text written.
- Method of: log.Channel
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_file_path |
string
|
||||||||||||
arg1_options |
Object
|
<optional> |
|
Returns:
- Type:
-
string
toJSON() → {string}
Serialises the current log channel's entire history and configuration to a JSON string.
- Method of: log.Channel
- Source:
Returns:
- Type:
-
string
warn(…argn_arguments)
Prints a warning message to the console channel, analogous to console.warn.
- Method of: log.Channel
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
argn_arguments |
<repeatable> |