serilog / serilog-formatting-compact-reader

A reader for Serilog's compact JSON format
Apache License 2.0
32 stars 16 forks source link

JavaScript version of this library #46

Closed lonix1 closed 3 days ago

lonix1 commented 5 days ago

I'm trying to build a very simple UI for showing our logs inline in our Razor Pages app. I'm aware of the serilog-ui project but it's not a good fit for us (too complicated).

This library allows us to render events on the server. But since structured log events are already stored as JSON in our database, it makes sense to simply send them as is, and thus offload the rendering burden to the browser.

Does anyone know of a js port of this library? There are so many serilog-related libraries and contrib repos and so on, so I'd like to know whether something like that exists before writing one from scratch.

(I'm posting here as there's no "Discussions" tab for this repo... Sorry! Please close once you've seen it.)

nblumhardt commented 4 days ago

Howdy! In case it helps - the most "bespoke" part of the task is probably message template parsing and rendering. These JavaScript/TypeScript projects include some message template support you might check out:

HTH

lonix1 commented 3 days ago

Thanks that looks very useful! :smile: