https://github.com/graphprotocol/graph-pino
Pino log message formatter for The Graph
https://github.com/graphprotocol/graph-pino
Last synced: 10 months ago
JSON representation
Pino log message formatter for The Graph
- Host: GitHub
- URL: https://github.com/graphprotocol/graph-pino
- Owner: graphprotocol
- License: mit
- Created: 2020-11-17T23:06:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T23:49:55.000Z (almost 4 years ago)
- Last Synced: 2024-04-14T04:32:36.744Z (almost 2 years ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graph-pino
Pino log message formatter for [The Graph](https://thegraph.com/). Formats
log messages so that provide a quick glance at all important things involved
in a message:
* the indexer address
* the subgraph deployment ID (as an IPFS hash)
* the allocation ID
* the state channel ID
* the transaction ID (of an operation)
* ...and more
## Installation
```sh
# NPM
npm install -g @graphprotocol/graph-pino
# Yarn
yarn add global @graphprotocol/graph-pino
```
## Usage
```sh
# Indexer service
graph-indexer-service ... | graph-pino
# Indexer agent
graph-indexer-agent ... | graph-pino
```
# License
Copyright © 2020 Graph Protocol, Inc.
Licensed under the [MIT License](LICENSE).