Struct slog_term::TermDecoratorBuilder
[−]
[src]
pub struct TermDecoratorBuilder { /* fields omitted */ }
TermDecorator
builder
Methods
impl TermDecoratorBuilder
[src]
pub fn stderr(self) -> Self
[src]
Output to stderr
pub fn stdout(self) -> Self
[src]
Output to stdout
pub fn force_color(self) -> Self
[src]
Force colored output
pub fn force_plain(self) -> Self
[src]
Force colored output
pub fn try_build(self) -> Option<TermDecorator>
[src]
Try to build TermDecorator
Unlike build
this will not fall-back to raw stdout
/stderr
if it wasn't able to use terminal and its features directly
(eg. if TERM
env. was not set).
pub fn build(self) -> TermDecorator
[src]
Build TermDecorator
Unlike try_build
this it will fall-back to using plain stdout
/stderr
if it wasn't able to use terminal directly.