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

Logging side-channel via env var #494

Open
JakeWharton opened this issue Oct 15, 2024 · 0 comments
Open

Logging side-channel via env var #494

JakeWharton opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New feature or request mosaic/runtime

Comments

@JakeWharton
Copy link
Owner

It's hard to log, because the place we log is the primary output of the tool.

Introduce two env vars:

  • MOSAIC_LOG_LEVEL with two or three levels
  • MOSAIC_LOG_PATH with a path to write to

Logging should be lambda-based so it can be as little overhead as possible. Also need to ensure we can make the log path behave like stdout where it can be streamed in real time to another terminal tab/window.

Probably should also be public API since users will have this problem, too.

@JakeWharton JakeWharton added enhancement New feature or request mosaic/runtime labels Oct 15, 2024
EpicDima added a commit to EpicDima/mosaic that referenced this issue Jan 3, 2025
EpicDima added a commit to EpicDima/mosaic that referenced this issue Jan 3, 2025
EpicDima added a commit to EpicDima/mosaic that referenced this issue Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mosaic/runtime
Projects
None yet
Development

No branches or pull requests

1 participant