You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let file_appender = RollingFileAppender::builder().filename_prefix(&conf.log_file).rotation(Rotation::HOURLY).build(&conf.log_dir).expect("failed to build rolling file appender");
file name will be UTC,like: v-tcp-proxy.log.2024-08-01-09 i want to set timezone Asia/Shanghai,but i found now is a private member,and not any method can change it.it's initialization like this let now = OffsetDateTime::now_utc();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
it's my source for log file name
file name will be UTC,like: v-tcp-proxy.log.2024-08-01-09 i want to set timezone Asia/Shanghai,but i found now is a private member,and not any method can change it.it's initialization like this let now = OffsetDateTime::now_utc();
Beta Was this translation helpful? Give feedback.
All reactions