-
Notifications
You must be signed in to change notification settings - Fork 301
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
Configuring log level #164
Comments
OK, I figure out:
I would prefer some configuration feature, for example by |
Hi @dscoppelletti,
Oh, but that's configurable on the logger you're using, see: // LoggingSystem.bootstrap(StreamLogHandler.standardError)
var logger = Logger(label: "...")
logger.logLevel = .debug
logger.debug("hello") this should print this message 👍
sorry to disappoint but we really only intend swift-log to be the absolute bare minimum package -- that it even ships any log handlers is already pushing it. As such, we will not be including any "proper log handler" features such as per label configurations or similar. This falls in the same category as #162 where we unanimously agreed that more features must be kept out of the handlers we shipped and we must encourage more LogHandlers to be implemented. This of it this way:
|
Please report back if this solves your issue and we can close the ticket? |
Yeah, it's fair. |
Cool, thanks for reporting/asking! |
I am using Swift-Log initialized by
LoggingSystem.bootstrap(StreamLogHandler.standardError)
, but on log messages with log level >=info
are shown on the console window of XCode 12.0.1.How can I configure the log level of the log messages shown on the console?
Thanks.
The text was updated successfully, but these errors were encountered: