@alphatango/logger
v0.0.6
Published
Logger which takes care of truncating Bearer tokens, safe JSON stringification, and converts errors to json objects.
Downloads
8
Keywords
Readme
ATSquad Token Provider
Logger which takes care of truncating Bearer tokens, safe JSON stringification, and converts errors to json objects.
Using this library
Install the library.
yarn add @alphatango/logger
import Logger from '@alphatango/logger';
const defaultConfiguration = { logFunction: console.log, jsonSpace: 2 };
let requestLogger = new RequestLogger(defaultConfiguration);
requestLogger.log({ title: 'Message title', level: 'WARN', error: 'Error'});
Contribution
We value your input as part of direct feedback to us, by filing issues, or preferably by directly contributing improvements:
- Fork this repository
- Create a branch
- Contribute
- Pull request