We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
try_build
build
https://github.com/sile/sloggers/blob/master/src/terminal.rs#L123
term crate can fail to return a terminal (eg. if TERM is not set) and TerminalDecorator will just not do any logging which is confusing to the users.
term
TERM
TerminalDecorator
Instead, use https://docs.rs/slog-term/2.2.0/slog_term/struct.TermDecoratorBuilder.html#method.try_build and in case of None use https://docs.rs/slog-term/2.2.0/slog_term/struct.PlainDecorator.html with io::stdout/io::stderr` or something like that that gives at least plain output.
None
io::stdout
Related: Stebalien/term#79
The text was updated successfully, but these errors were encountered:
build()
try_build()
Actually I think I'm going to fix it in slog-term itself.
slog-term
Sorry, something went wrong.
Use PlainDecorator as the fallback for the case that TermDecorator
PlainDecorator
TermDecorator
108039f
is unavailable See #3 for more details
Thank you for your advice. I fixed this problem in sloggers-v0.2.2.
No branches or pull requests
https://github.com/sile/sloggers/blob/master/src/terminal.rs#L123
term
crate can fail to return a terminal (eg. ifTERM
is not set) andTerminalDecorator
will just not do any logging which is confusing to the users.Instead, use https://docs.rs/slog-term/2.2.0/slog_term/struct.TermDecoratorBuilder.html#method.try_build and in case of
None
use https://docs.rs/slog-term/2.2.0/slog_term/struct.PlainDecorator.html withio::stdout
/io::stderr` or something like that that gives at least plain output.Related: Stebalien/term#79
The text was updated successfully, but these errors were encountered: