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

A way to serialize a model: CLI, web, else #748

Open
edudar opened this issue Dec 10, 2023 · 0 comments
Open

A way to serialize a model: CLI, web, else #748

edudar opened this issue Dec 10, 2023 · 0 comments

Comments

@edudar
Copy link

edudar commented Dec 10, 2023

Unless I'm missing something obvious, there's no easy way to serialize the Logback model to scmo file.

One way to do that is to include <serializeModel file="..."> into XML config. When Logback runs such a configuration, it'll serialize itself into the given file. Two problems here. First, it's not very convenient to get a serialized model only when the app starts, especially when maintaining shared configuration, meaning there's no app to start to begin with. Second, the serialized model contains a model to serialize itself, so every time the app starts, it creates a new scmo file.

It would be so much better if there was a CLI tool that users could point to XML files and get SCMO files as an output.

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