Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想记录文件以将日期显示为%a %b %d %H:%M:%S.%3N.
%a %b %d %H:%M:%S.%3N
$ date '+%a %b %d %H:%M:%S.%3N' Mon Aug 27 12:15:36.954
我已经发现由于碰撞我需要设置log-date = %%a %%b %%d %%H:%%M:%%S.
log-date = %%a %%b %%d %%H:%%M:%%S
但不能让毫秒或纳秒的工作......
strftime()不支持毫秒或纳秒。
strftime()
您必须依赖较低级别的系统:
uWSGI 日志格式
不幸的是,这需要uWSGI v1.3+。