Struct slog_html::FormatBuilder
[−]
[src]
pub struct FormatBuilder { /* fields omitted */ }
Streamer builder
Methods
impl FormatBuilder
[src]
fn full(self) -> Self
Output using full mode (default)
fn compact(self) -> Self
Output using compact mode
fn color_palette(self, color_palette: ColorPalette) -> Self
Use custom color palette
fn level_style(self, style: Style) -> Self
Use custom style for the log level
fn timestamp_style(self, style: Style) -> Self
Use custom style for the timestamp
fn message_style(self, style: Style) -> Self
Use custom style for the message
fn key_style(self, style: Style) -> Self
Use custom style for keys
fn value_style(self, style: Style) -> Self
Use custom style for values
fn separator_style(self, style: Style) -> Self
Use custom style for separators
fn use_utc_timestamp(self) -> Self
Use the UTC time zone for the timestamp
fn use_local_timestamp(self) -> Self
Use the local time zone for the timestamp (default)
fn use_custom_timestamp<F>(self, f: F) -> Self where
F: Fn(&mut Write) -> Result<()> + 'static + Send + Sync,
F: Fn(&mut Write) -> Result<()> + 'static + Send + Sync,
Provide a custom function to generate the timestamp
fn build(self) -> Format<HtmlDecorator>
Build Html formatter