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

Provide .json log format #255

Open
shouples opened this issue Dec 23, 2024 · 0 comments
Open

Provide .json log format #255

shouples opened this issue Dec 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shouples
Copy link
Contributor

shouples commented Dec 23, 2024

The VS Code extension is currently tailing the existing .log file, which includes a lot of prefixed information that isn't needed. If we can use a JSON log file, that extra information could be saved as key/value pairs, and when the extension tails the file, it can use a LogOutputChannel (like its own logging) to handle log formatting and log level changes, and select which field(s) should be shown in the Confluent (Sidecar) output channel.

image

One option is to use https://quarkus.io/extensions/io.quarkus/quarkus-logging-json/

Suggestions for fields (if they aren't already provided):

{
  "timestamp": string, // UTC or user's local timezone (current)?
  "machineName": string, // "qfwqgwmhg1" above
  "path": string, // "/Users/dshoup/.vscode/extensions/confluentinc.vscode-confluent-0.23.0-15+2a4e88/ide-sidecar-0.115.0-runner" above
  "pid": number, // 30945 above
  "level": string,
  "source": string, // "io.con.ide.res.fil.WorkspaceProcessIdFilter" above
  "message": string
}
@Cerchie Cerchie added the enhancement New feature or request label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants