Crate std_logger [] [src]

A crate that holds a logging implementation that logs to standard error and standard out. It uses standard error for all regular messages and standard out for requests (when using the REQUEST_TARGET).

Constants

REQUEST_TARGET

The log target to use when logging requests. Using this as a target the message will be logged to standard out.

Functions

init

Initialize the logger. Any logs with the target set to REQUEST_TARGET will be logged to standard out, any other logs will be printed to standard error. If the initializion fails this function will panic.