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

Apply loglevels in the environment #1

Open
helje5 opened this issue Jun 29, 2021 · 0 comments
Open

Apply loglevels in the environment #1

helje5 opened this issue Jun 29, 2021 · 0 comments

Comments

@helje5
Copy link
Member

helje5 commented Jun 29, 2021

When switching to the "official" Logging package, we lost the ability to easily set loglevels? Like export LOGLEVEL=trace.

We should fix that and have Macro configure the logging system if such env vars are found.

Boilerplate:

LoggingSystem.bootstrap { label in
  var handler = StreamLogHandler.standardOutput(label: label)
  handler.logLevel = .trace
  return handler
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant