Skip to main content

set_thread_name

Function set_thread_name 

Source
pub fn set_thread_name(thread_name: &str)
Expand description

Sets the logging thread name for the current thread.

The name is truncated to 32 bytes and used for the {thread} token in the header pattern.