Function trillium_logger::formatters::status
source ยท pub fn status(conn: &Conn, color: bool) -> StatusOutput
Expand description
formatter for the http status
displays just the numeric code of the status. when color is enabled, it uses the following color encoding:
code | color |
---|---|
2xx | green |
3xx | cyan |
4xx | yellow |
5xx | red |
??? | white |