Function init

Source
pub async fn init(buffer_size: usize)
Expand description

Initialize the logger with a buffer size. This function spawns a background worker that receives log messages and prints them to the console. The buffer size determines how many messages can be queued before the sender blocks.

ยงArguments

  • buffer_size - The size of the buffer for the channel.