gajus / gajus/roarr

[Question] Where is the schema-based serialisation

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

The docs say:

> Roarr is opinionated about how it serializes (converts objects to JSON string) log messages, e.g. **in Node.js it uses a schema based serializer, which is very fast, but does not allow custom top-level properties.**

Having had a root around the source code, I can't find where this schema-based serialisation is occuring. I'd like to implement my own serialiser to log the levels in their human-readable names (which believe it or not are also machine-readable and more commonly used) but I'd like to make sure I'm following the current serialisation implementation as closely as possible.

Could you point me in the direction of where the message is being serialised by schema?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by searching the Roarr source for the schema-based serializer and the path that converts log messages to JSON. Confirm where Node.js serialization occurs and document that entry point, including whether custom top-level properties are supported; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
observability-sre
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.