Hi!
I'm currently stuck at configuring the logger. By default, if I write the following code:
// module: example
error!("YOH");
error!(target: "a", "YOH");
It will display:
[2022-10-19T11:08:47Z INFO onix_server] YOH
[2022-10-19T11:08:47Z INFO a] YOH
What I'd like to see is:
[2022-10-19T11:08:47Z INFO ] YOH
[2022-10-19T11:08:47Z INFO a] YOH
Which means not displaying the module the log comes from, but displaying the custom target if any is provided.
How can I achieve that? I use .format_module_path(false) but it seemed to have no effect.
Thanks in advance for your help!
Hi!
I'm currently stuck at configuring the logger. By default, if I write the following code:
It will display:
What I'd like to see is:
Which means not displaying the module the log comes from, but displaying the custom target if any is provided.
How can I achieve that? I use
.format_module_path(false)but it seemed to have no effect.Thanks in advance for your help!