Struct loglog::LogLogBuilder [] [src]

pub struct LogLogBuilder { /* fields omitted */ }

The main logger builder.

Methods

impl LogLogBuilder
[src]

Start the logger with the constructed settings.

Set the timestamp format to be used. If None is given, the timestamp is disabled.

By default, the timestamp is displayed, and the format is %H:%M:%S.

Enable or disable the output of the "log target". For example, for a module zmod in a crate zcrate, this would be zcrate::zmod.

By default, the displaying the target is not enabled.

Enable or disable coloured output. Note that colours are automatically disabled if the terminal doesn't support them.

By default, colours are enabled.

Enable or disable output to stdout.

By default, logs are sent to stderr.

Specify the env_logger selector.

By default, this will be pulled from the environment variable RUST_LOG , and if that variable doesn't exist, debug will be used.