toki-logger
Version:
25 lines (19 loc) • 1.45 kB
Markdown
# Toki-Logger <!-- Repo Name -->
> A logging shim for Toki to work with any and all compatible loggers. <!-- Repo Brief Description -->
Toki-logger exposes a simple logging interface through functions or can listen to any EventEmitter and automatically handle passing on those functions. It can be fed any standard logging library or instance that exposes methods, and it itself is an EventEmitter which can be observed.
<!-- Maintainer (Hint, probably you) -->
Lead Maintainer: [Derrick Hinkle](https://github.com/dhinklexo)
<!-- Badges Go Here -->
[](https://badge.fury.io/js/%40toki%2Ftoki-logger)
[](https://travis-ci.org/xogroup/toki-logger)
[](https://snyk.io/test/github/xogroup/toki-logger)
[](https://nodesecurity.io/orgs/xo-group/projects/9bb6d883-8850-4bcc-bbff-d602e647163c)
<!-- End Badges -->
<!-- Quick Example -->
## Example
```javascript
const TokiLogger = require('@toki/toki-logger');
const logger = TokiLogger(myLoggingInstance);
```
More examples can be found in [the examples document](Example.md) and the full api in the [API documentation](API.md).
<!-- Anything Else (Sponsors, Links, Etc) -->