> ## Documentation Index
> Fetch the complete documentation index at: https://projectdiscovery-subfinder-reference-blog.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Goconsole

<a name="module_goconsole" />

## goconsole

* [goconsole](#module_goconsole)
  * [`GoConsolePrinter`](#module_goconsole..GoConsolePrinter)
    * [`.Error(msg)`](#module_goconsole..GoConsolePrinter+Error)
    * [`.Log(msg)`](#module_goconsole..GoConsolePrinter+Log)
    * [`.Warn(msg)`](#module_goconsole..GoConsolePrinter+Warn)
  * [`NewGoConsolePrinter()`](#module_goconsole..NewGoConsolePrinter) ⇒ <code>GoConsolePrinter</code>

<a name="module_goconsole..GoConsolePrinter" />

### (goconsole).GoConsolePrinter

GoConsolePrinter is a console printer for nuclei using gologger

**Kind**: inner class of [<code>goconsole</code>](#module_goconsole)

* [`GoConsolePrinter`](#module_goconsole..GoConsolePrinter)
  * [`.Error(msg)`](#module_goconsole..GoConsolePrinter+Error)
  * [`.Log(msg)`](#module_goconsole..GoConsolePrinter+Log)
  * [`.Warn(msg)`](#module_goconsole..GoConsolePrinter+Warn)

<a name="module_goconsole..GoConsolePrinter+Error" />

#### goConsolePrinter.Error(msg)

Error logs an error message

**Kind**: instance method of [<code>GoConsolePrinter</code>](#module_goconsole..GoConsolePrinter)

| Param | Type                | Description         |
| ----- | ------------------- | ------------------- |
| msg   | <code>string</code> | The message to log. |

**Example**

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

<a name="module_goconsole..GoConsolePrinter+Log" />

#### goConsolePrinter.Log(msg)

Log logs a message

**Kind**: instance method of [<code>GoConsolePrinter</code>](#module_goconsole..GoConsolePrinter)

| Param | Type                | Description         |
| ----- | ------------------- | ------------------- |
| msg   | <code>string</code> | The message to log. |

**Example**

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

<a name="module_goconsole..GoConsolePrinter+Warn" />

#### goConsolePrinter.Warn(msg)

Warn logs a warning message

**Kind**: instance method of [<code>GoConsolePrinter</code>](#module_goconsole..GoConsolePrinter)

| Param | Type                | Description         |
| ----- | ------------------- | ------------------- |
| msg   | <code>string</code> | The message to log. |

**Example**

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

<a name="module_goconsole..NewGoConsolePrinter" />

### (goconsole).NewGoConsolePrinter() ⇒ <code>GoConsolePrinter</code>

NewGoConsolePrinter creates a new instance of GoConsolePrinter

**Kind**: inner method of [<code>goconsole</code>](#module_goconsole)\
**Returns**: <code>GoConsolePrinter</code> - - The new instance of GoConsolePrinter.\
**Example**

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