[][src]Module tide::log

Event logging types.

Examples

use tide::log;

// `tide::log` requires starting a third-party logger such as `femme`. We may
// ship such a logger as part of Tide in the future.
femme::start(log::Level::Info.to_level_filter()).unwrap();

log::info!("Hello cats");
log::debug!("{} wants tuna", "Nori");
log::error!("We're out of tuna!");
log::info!("{} are hungry", "cats", {
    cat_1: "Chashu",
    cat_2: "Nori",
});

Macros

debug

Logs a message at the debug level.

error

Logs a message at the error level.

info

Logs a message at the info level.

log

The standard logging macro.

trace

Logs a message at the trace level.

warn

Logs a message at the warn level.

Structs

LogMiddleware

Log all incoming requests and responses.

Enums

Level

An enum representing the available verbosity levels of the logger.

Functions

max_level

Returns the current maximum log level.