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

enable JSON formatted logs if EDG_LOG_FORMAT=json #293

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

thomasten
Copy link
Member

Enable JSON formatted logging for ego run and ego marblerun in case the EDG_LOG_FORMAT env variable is set to json:

$ ego marblerun hello
2024/11/21 15:26:21 INFO EGo version=1.6.0 git_commit=943be7f7c0aa68ecd40bba3d70f730c8c7b944d0
[erthost] loading enclave ...
[erthost] entering enclave ...
[PreMain] 2024/11/21 15:26:22 starting PreMain
[PreMain] 2024/11/21 15:26:22 fetching env variables

$ EDG_LOG_FORMAT=json ego marblerun hello
{"time":"2024-11-21T15:26:45.767590536Z","level":"INFO","msg":"EGo","version":"1.6.0","git_commit":"943be7f7c0aa68ecd40bba3d70f730c8c7b944d0"}
{"time":"2024-11-21T15:26:45.770137068Z","level":"INFO","msg":"[erthost] loading enclave ..."}
{"time":"2024-11-21T15:26:47.207473447Z","level":"INFO","msg":"[erthost] entering enclave ..."}
{"level":"info","ts":1732202807.225447,"caller":"premain/premain.go:152","msg":"[PreMain] starting PreMain"}
{"level":"info","ts":1732202807.226447,"caller":"premain/premain.go:155","msg":"[PreMain] fetching env variables"}

Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for ego-docs ready!

Name Link
🔨 Latest commit c4721b4
🔍 Latest deploy log https://app.netlify.com/sites/ego-docs/deploys/673f5351f19cf30008b58568
😎 Deploy Preview https://deploy-preview-293--ego-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@thomasten thomasten merged commit 5a41b74 into master Nov 21, 2024
9 checks passed
@thomasten thomasten deleted the logjsn branch November 21, 2024 15:58
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

Successfully merging this pull request may close these issues.

2 participants