Function email::log::get_or_create

Function Documentation

std::shared_ptr<Logger> email::log::get_or_create(const std::string &name)

Get an existing logger or create it from the root logger.

Useful for sharing a logger.

Will initialize logging from environment if not initialized.

Parameters:

name – the name of the logger

Returns:

the logger