[−][src]Function safe_core::utils::logging::init_to_web_socket
pub fn init_to_web_socket<U: Borrow<str>>(
server_url: U,
session_id: Option<String>,
show_thread_name_in_console: bool,
log_to_console: bool
) -> Result<(), String>
Initialises the env_logger
for output to a web socket and optionally to the console
asynchronously. The log which goes to the web-socket will be both verbose and in JSON as
filters should be present in web-servers to manipulate the output/view.
For further details, see the module docs.