{"repo":"thessem/zap-prettyconsole","free":true,"listed":false,"github":"https://github.com/thessem/zap-prettyconsole","clone":"git clone https://github.com/thessem/zap-prettyconsole.git","description":"A structured logger with output designed to be read by humans. Implemented as a zap encoder.","language":"Go","stars":39,"topics":["logger-interface","logging","terminal-ui","zap","developer-tools","development-environment","go","golang","log","logger"],"license":"MIT","category":"dev-tools","readme_excerpt":":zap: :nail care: zap-prettyconsole - Pretty Console Output For Zap An encoder for Uber's [zap] logger that makes complex structured log output easily readable by humans. It prioritises displaying information in a clean and easy-to-understand way. You get good-looking, colourised output like this: When your log output contains structured data, it looks like this: I personally feel the above is much more readable than the default \"development\" logger that comes with zap, which looks like this: The above example was generated using: This is intended as a tool for local development, and not for running in production. In production I recommend you use zap's built in JSON mode. Your logs in production will be getting parsed by computers, not humans, after all. Take a look at the [zap advanced configuration] example to configure zap to output \"human\" output locally, and \"machine\" output in production. This package takes particular care to represent structural information with indents and newlines (slightly YAML style), hopefully making it easy to figure out what each key-value belongs to: which is the output of This encoder was inspired by trying to parse multiple github.com/pkg/errors/ errors, each with their own stacktraces. I am a big fan of error wrapping and error stacktraces, I am not a fan of needing to copy text out of my terminal to see what happened. When objects that do not satisfy ObjectMarshaler are logged, zap-prettyconsole will use its built-in reflection dumper to p","default_branch":null,"files":null,"tree":[],"storefront":"/r/thessem","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thessem/zap-prettyconsole/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}