commitdev / zero

Allow startup developers to ship to production on day 1
https://getzero.dev
Mozilla Public License 2.0
560 stars 52 forks source link

Errors / Exceptions / Standardized Logging #239

Open bmonkman opened 4 years ago

bmonkman commented 4 years ago

Analyze and choose best tools for error / exception handling, logging, etc. in supported frontend and backend languages, and integrate. Look at options like outputting all JSON logs, and then modifications to Fluentd config to support auto-parsing. We have existing code for this in some projects - ask Bill.

GrooveStomp commented 3 years ago

For Go we used logrus at my last gig.

GrooveStomp commented 3 years ago

More specifically, we used Logrus with json output. We also used ougai for Ruby to output json logs. We were using Datadog to aggregate logs and it had a built-in json parser; presumably similar to Fluentd's json parser.

bmonkman commented 3 years ago

Yeah I have the most experience with Logrus as well.

bmonkman commented 3 years ago

Also see this PR for Node.js: https://github.com/commitdev/helix-service/pull/357/files