plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

[log][v2] expose formatter option

Open BTMuli opened this issue 10 months ago • 3 comments

Image

As the img above show,it is useless for developer or user to see the line of the log,the real matter thing should occupy more space.

BTMuli avatar Mar 06 '25 01:03 BTMuli

We do have that: https://docs.rs/tauri-plugin-log/latest/tauri_plugin_log/struct.Builder.html#method.format

Legend-Master avatar Mar 06 '25 09:03 Legend-Master

We have that: https://docs.rs/tauri-plugin-log/latest/tauri_plugin_log/struct.Builder.html#method.format

It is rust ver and has no example.😢

BTMuli avatar Mar 06 '25 09:03 BTMuli

Well, it's really not very efficient to sending the log to the webview and then getting it back since there can be a lot of them, so that's why it's only in the rust side, for the examples, we currently use fern under the hood, so you can take a look at https://docs.rs/fern/latest/fern/struct.Dispatch.html#method.format for now, we'll need more documentations on this though

Legend-Master avatar Mar 06 '25 09:03 Legend-Master