docs update

This commit is contained in:
shenjack 2023-12-13 09:46:07 +08:00
parent a4e63ef73f
commit e404486ccb
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@
## Logger
- [ ] 达到可用级别
- `Outstream`
- `FileCacheOutputStream`
- 现在如果输入的文件名包含 `{time}`
- 会自动替换为 `time.strftime("%Y-%m-%d|%H-%M-%S")`
## Nuitka Compiler Helper

View File

@ -144,7 +144,7 @@ class FileCacheOutputStream(BaseOutputStream):
# 初始化文件名
if "{time}" in self.file_name:
self.file_name = self.file_name.format(time=time.strftime(
"%Y-%m-%d %H-%M-%S", time.gmtime(self.file_start_time)
"%Y-%m-%d|%H-%M-%S", time.gmtime(self.file_start_time)
))
# 初始化缓存
if self.text_cache is None: