Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hbarcelos/give-your-logs-more-context
Wrapper on top of pino which provides integration with cls-hooked for better context in log messages
https://github.com/hbarcelos/give-your-logs-more-context
Last synced: 4 days ago
JSON representation
Wrapper on top of pino which provides integration with cls-hooked for better context in log messages
- Host: GitHub
- URL: https://github.com/hbarcelos/give-your-logs-more-context
- Owner: hbarcelos
- Created: 2018-08-25T22:50:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T05:30:55.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T05:53:09.726Z (7 months ago)
- Language: JavaScript
- Size: 115 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Give your logs more context
This repository is the implementation of the ideas from "Give your logs more context" article series:
- [Part 1](https://itnext.io/give-your-logs-more-context-7b43ea6b4ae6)
- [Part 2](https://medium.com/@hbarcelos/give-your-logs-more-context-part-2-c2c952724e04)## Requirements
- [Yarn](https://yarnpkg.com/en/docs/install)
## Setup
If you are following follow the article, after cloning this repository, I checkout the `initial` tag:
```bash
git clone https://github.com/hbarcelos/give-your-logs-more-context
git checkout initial
```Each step on the article is a subsequent commit, which you can reference by the commit hash.
The final version is under the `final` tag, which is also the `HEAD` of the master branch.
```bash
git checkout final
# or...
git checkout master
```After choosing what you want to see, run:
```bash
yarn install
yarn test
```