Methods
Error(msg)
Error logs an error message
Parameters:
Name | Type | Description |
---|---|---|
msg | string | The message to log. |
- Source
Example
let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Error('This is an error message');
Log(msg)
Log logs a message
Parameters:
Name | Type | Description |
---|---|---|
msg | string | The message to log. |
- Source
Example
let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Log('This is a log message');
Warn(msg)
Warn logs a warning message
Parameters:
Name | Type | Description |
---|---|---|
msg | string | The message to log. |
- Source
Example
let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Warn('This is a warning message');