> For the complete documentation index, see [llms.txt](https://gbrasil3g.gitbook.io/pegasus-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gbrasil3g.gitbook.io/pegasus-js/functions-and-methods/logger-console.md).

# Logger (Console)

All logger options to log at the console in a beauty way

{% tabs %}
{% tab title="Success" %}

> Logging in console using a success syntax

```typescript
import { Logger } from 'pegasus-js'

const instance = new Logger()

instance.use({
  type: 'success',
  message: 'a super cool success message'
})
```

{% endtab %}

{% tab title="Error" %}

> Logging in console using a error syntax

```typescript
import { Logger } from 'pegasus-js'

const instance = new Logger()

instance.use({
  type: 'error',
  message: 'a super cool error message'
})
```

{% endtab %}

{% tab title="Warning" %}

> Logging in console using a warning syntax

```typescript
import { Logger } from 'pegasus-js'

const instance = new Logger()

instance.use({
  type: 'warning',
  message: 'a super cool warning message'
})
```

{% endtab %}

{% tab title="Information" %}

> Logging in console using a information syntax

```typescript
import { Logger } from 'pegasus-js'

const instance = new Logger()

instance.use({
  type: 'info',
  message: 'a super cool informative message'
})
```

{% endtab %}

{% tab title="Debug" %}

> Logging in console using a debug syntax

```typescript
import { Logger } from 'pegasus-js'

const instance = new Logger()

instance.use({
  type: 'debug',
  message: 'a super cool debug message'
})
```

{% endtab %}
{% endtabs %}
