goconsole

(goconsole).GoConsolePrinter

GoConsolePrinter is a console printer for nuclei using gologger

Kind: inner class of goconsole

goConsolePrinter.Error(msg)

Error logs an error message

Kind: instance method of GoConsolePrinter

ParamTypeDescription
msgstringThe message to log.

Example

let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Error('This is an error message');

goConsolePrinter.Log(msg)

Log logs a message

Kind: instance method of GoConsolePrinter

ParamTypeDescription
msgstringThe message to log.

Example

let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Log('This is a log message');

goConsolePrinter.Warn(msg)

Warn logs a warning message

Kind: instance method of GoConsolePrinter

ParamTypeDescription
msgstringThe message to log.

Example

let m = require('nuclei/goconsole');
let c = m.GoConsolePrinter();
c.Warn('This is a warning message');

(goconsole).NewGoConsolePrinter() ⇒ GoConsolePrinter

NewGoConsolePrinter creates a new instance of GoConsolePrinter

Kind: inner method of goconsole
Returns: GoConsolePrinter - - The new instance of GoConsolePrinter.
Example

let m = require('nuclei/goconsole'); 
let printer = m.NewGoConsolePrinter();