Struct slog_term::TermDecoratorBuilder
[−]
[src]
pub struct TermDecoratorBuilder { /* fields omitted */ }
TermDecorator
builder
Methods
impl TermDecoratorBuilder
[src]
fn stderr(self) -> Self
[src]
Output to stderr
fn stdout(self) -> Self
[src]
Output to stdout
fn force_color(self) -> Self
[src]
Force colored output
fn force_plain(self) -> Self
[src]
Force colored output
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).
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.