# logger

Variable

Source: https://github.com/playcanvas/splat-transform/blob/b6424a5b3b929695fbaafe738a995adb1240d675/src/lib/utils/logger.ts#L455

Public logger surface.

Open named, timed scopes with [Logger.group](https://api.playcanvas.com/splat-transform/variables/logger.md#group). Pass `{ index, total }`
to render the group as part of a numbered series. Indeterminate progress is
reported with [Logger.bar](https://api.playcanvas.com/splat-transform/variables/logger.md#bar). Free-form messages route through `info` /
`warn` / `error` / `debug`, indented under whatever is on top of the
active-scope stack.

Both `group` and `bar` are pure-push operations: opening a new scope simply
places it on top of the stack without auto-closing siblings, so call order
directly determines nesting. Close scopes with `handle.end()` after the
body. Callers that route failures through [Logger.error](https://api.playcanvas.com/splat-transform/variables/logger.md#error) get scope
cleanup for free; embedders that swallow exceptions should call
[Logger.unwindAll](https://api.playcanvas.com/splat-transform/variables/logger.md#unwindall) from their catch to close every still-open scope.

```ts
const logger: { bar: any; debug: any; error: any; getVerbosity: any; group: any; info: any; output: any; setRenderer: any; setVerbosity: any; unwindAll: any; warn: any }
```

**Properties**

- `bar` (`any`)
- `debug` (`any`)
- `error` (`any`)
- `getVerbosity` (`any`)
- `group` (`any`)
- `info` (`any`)
- `output` (`any`)
- `setRenderer` (`any`)
- `setVerbosity` (`any`)
- `unwindAll` (`any`)
- `warn` (`any`)
