Module drone_core::log[][src]

Debug logging facade.

This module implements standard output/error interface, which mimics Rust’s standard library. This is a facade module. Concrete output implementation should be provided by downstream crates.

Reserved ports:

Macros

baud_rate

Returns log output baud rate defined in Drone.toml.

Structs

Port

Logger port handle.

Constants

PORTS_COUNT

Number of ports.

STDERR_PORT

Port number of the standard error stream.

STDOUT_PORT

Port number of the standard output stream.

Functions

flush

Blocks until all pending packets are transmitted.

stderr

Returns port for standard error.

stdout

Returns port for standard output.

write_fmt

Writes args to the log port number port.

write_str

Writes string to the log port number port.