@alphatango/logger
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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:

  1. Fork this repository
  2. Create a branch
  3. Contribute
  4. Pull request

Readme

Keywords

none

Package Sidebar

Install

npm i @alphatango/logger

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

8.95 kB

Total Files

7

Last publish

Collaborators

  • akincel
  • alphatango-deploy
  • dboerlage
  • thoean
  • wparad