donnie4w / tklog

lightweight and efficient rust structured log library with support for log levels, file segmentation, compressed archiving
https://crates.io/crates/tklog
Apache License 2.0
58 stars 4 forks source link

不能自定义格式化输出分隔符 #5

Open tsxiaofang opened 1 month ago

tsxiaofang commented 1 month ago

能不能把 let msg: String = formatted_args.join(","); 改成 let msg: String = formatted_args.concat(); 我觉得这个分隔符,应该由外面指定,这个逗号很别扭; let msg = "hello world"; info!("message:", msg); 现在的输出结果是 :message:,hello world 期待的结果应该是: message:hello world

donnie4w commented 1 month ago

@tsxiaofang 好的,我会增加一个属性或方法来定义分隔符,可以设置为空或其他字符。

donnie4w commented 1 month ago

@tsxiaofang 已发布 0.0.10支持该功能 v0.0.10