> For the complete documentation index, see [llms.txt](https://bluebase.gitbook.io/core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bluebase.gitbook.io/core/api/logger.md).

# Logger

BlueBase's Logger API allows you to log messages to any number of logging services.

## Working with the API

You can call logger for different console message modes:

```typescript
BB.Logger.log('log bar');
BB.Logger.info('info bar');
BB.Logger.debug('debug bar');
BB.Logger.warn('warn bar');
BB.Logger.error('error bar');
```

When handling an error:

```typescript
try {
    ...
} catch(e) {
    BB.Logger.error('error happened', e);
}
```

## Integrations

To add support for a Logging Provider see this [guide](/core/key-concepts/plugins/developing-a-logger-plugin.md).
