steemit / hivemind

Developer-friendly microservice powering social networks on the Steem blockchain.
MIT License
73 stars 66 forks source link

structured logging #32

Open roadscape opened 6 years ago

roadscape commented 6 years ago

Currently hive indexer logging is basic console output, though tuned to produce useful output at the INFO level at a reasonable volume. Hive server logging could use some work. And generally there's a mix of prints and logger.getLogger, with hacks for other packages' noisy loggers (sa & jsonrpcserver). Hive's logging would benefit from a refactoring and polishing.

yo uses http://www.structlog.org/en/stable/

jnordberg commented 6 years ago

+100 for json based logging, that's what all new node.js services (conveyor, kingdom, gatekeeper, faucet, faucet-admin, overseer) uses already

scalyr auto-parses json logs as well

roadscape commented 6 years ago

Related: https://github.com/steemit/jussi/issues/115 (Convert third party packages logging to json)