axios-logger icon indicating copy to clipboard operation
axios-logger copied to clipboard

Add json / logfmt format options

Open RichardWright opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. This is a handy lib, ideally it would plug into a standard display format as used by grafana (formats in here - https://grafana.com/docs/loki/latest/logql/#Metric-Queries)

Describe the solution you'd like Return Json or logfmt

Describe alternatives you've considered Writing long hand regex, but that seems pretty brittle.

RichardWright avatar Dec 14 '20 22:12 RichardWright

Good Idea. I'm using a Morgan now, so I'll check if it can be easily mashup.

hg-pyun avatar Dec 19 '20 01:12 hg-pyun

I've written a change for this, but I need advice as it's definetly not ok as it stands.

RichardWright avatar Jan 05 '21 11:01 RichardWright