Crate udp_logger_rs[][src]

Expand description

This crate provides logging macros that incorporates key/value logging and a logger that sends all logs to a UDP port.

Examples

use std::vec::Vec;
use udp_logger_rs::info;

let ctx: Vec<(String, String)> = vec![
  ("cat_1".into(), "chashu".into()),
  ("cat_2".into(), "nori".into()),
];

info!(kvs: &ctx, "something to log");

Macros

Logs a message at the debug level.

Logs a message at the error level.

Logs a message at the info level.

The standard logging macro.

Determines if a message logged at the specified level in that module will be logged.

Logs a message at the trace level.

Logs a message at the warn level.

Structs

The UdpLogger is a control structure for logging via UDP packets.

Enums

An enum representing the available verbosity levels of the logger.

An enum representing the available verbosity level filters of the logger.

Wire formats. Default is Uncompressed.

Constants

The statically resolved maximum log level.

Functions

Returns the current maximum log level.