goconsole~ GoConsolePrinter

GoConsolePrinter is a console printer for nuclei using gologger

Constructor

new GoConsolePrinter()

Methods

Error(msg)

Error logs an error message
Parameters:
NameTypeDescription
msgstringThe message to log.
Example
let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Error('This is an error message');

Log(msg)

Log logs a message
Parameters:
NameTypeDescription
msgstringThe message to log.
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:
NameTypeDescription
msgstringThe message to log.
Example
let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Warn('This is a warning message');