# Class LittleGhost::Events::ConsoleListener

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Events/ConsoleListener.html

JSON-lines listener suitable for diagnostics and local development. Values
pass through a Support::Redactor before being written.

## Inheritance

`LittleGhost::Events::ConsoleListener < Object`

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
.new(io: $stderr, redactor: Support::Redactor.new)
```

Writes redacted JSON lines to `io`.

## Instance methods

<a id="method-i-emit"></a>
### `#emit`

```ruby
#emit(event)
```

Emits one complete JSON line atomically.
