> For the complete documentation index, see [llms.txt](https://blueeast.gitbook.io/bluerain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blueeast.gitbook.io/bluerain/key-concepts/plugins/developing-a-logger-plugin.md).

# Developing a Logger Plugin

You can add support for any logging service provider by using the following logger hooks:

* `bluebase.logger.log`
* `bluebase.logger.info`
* `bluebase.logger.debug`
* `bluebase.logger.warn`
* `bluebase.logger.error`

## Example

```typescript
await BB.Hooks.register('bluebase.logger.log', {
	name: 'logger-plugin',
	handler: (message: string, data: any) => {
		// send data to analytics provider here
	}
});
```
