Skip to content

Logging side-channel via env var #494

Open
@JakeWharton

Description

@JakeWharton

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions