@glaminstants/logger
v1.5.2
Published
This is the logger package for all TypeScript projects in Glaminstants.
Downloads
14
Readme
logger
This is the logger package for all TypeScript projects in Glaminstants.
Use it
yarn add @glaminstants/loggerConfiguration
In order to configure the HTTP transport layer, there are a few environment variables needed in the context of the consumer app:
| Name | Description |
| --------------- | ------------------------------------------ |
| APP_NAME | Application name (e.g. orders-service) |
| ENVIRONMENT | Environment (e.g. staging, production) |
| DATADOG_API_KEY | Datadog's API key |
When using createAppLogger, the transaction ID (txId), transaction type (txType) and application name can be passed (appName) in order to take the greatest advantage of this package capabilities.
Setup for local dev
yarnRelease
To release a new version:
- It is imperative to bump the
versioninpackage.json - Create PR with proposed changes
- Merge PR and release workflow should take place in
masterbranch.
Pre-release
A pre-release can be issued if the code is pushed to the alpha and beta channels.
