Struct log4rs::encode::writer::console::ConsoleWriter [] [src]

pub struct ConsoleWriter(_);

An encode::Writer that outputs to a console.

Methods

impl ConsoleWriter
[src]

Returns a new ConsoleWriter that will write to standard out.

Returns None if standard out is not a console buffer on Windows, and if it is not a TTY on Unix.

Returns a new ConsoleWriter that will write to standard error.

Returns None if standard error is not a console buffer on Windows, and if it is not a TTY on Unix.

Locks the console, preventing other threads from writing concurrently.

Trait Implementations

impl Write for ConsoleWriter
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more

impl Write for ConsoleWriter
[src]

Sets the output text style, if supported. Read more