Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Where is the schema-based serialisation #87

Open
WoodyWoodsta opened this issue Feb 16, 2024 · 0 comments
Open

[Question] Where is the schema-based serialisation #87

WoodyWoodsta opened this issue Feb 16, 2024 · 0 comments

Comments

@WoodyWoodsta
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant