Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

think-logger 最新的1.3.1版本只能保存今天和昨天的日志两个文件 #1713

Open
chylygh opened this issue Nov 21, 2022 · 5 comments
Assignees

Comments

@chylygh
Copy link

chylygh commented Nov 21, 2022

DESC

think-logger 最新的1.3.1版本只能保存今天和昨天的日志两个文件,换成秒级的也是一样的,只能保存最近2个日志文件。1.2.1版没有问题。
请问一下能修复吗?

ENV

OS Platform:

Node.js Version:

ThinkJS Version:

code

// your code here

error message

// your error message here

more description

// your detail description

@DickyNet
Copy link

DickyNet commented Nov 30, 2023

遇到同样问题,无解了吗?官方一年多了还没修复这个Bug么?


Encountering the same problem and no solution? Hasn't this bug been officially fixed for more than a year?

@lizheming
Copy link
Contributor

lizheming commented Nov 30, 2023

@DickyNet 提供下配置看一下


@DickyNet provides the configuration to take a look

@DickyNet
Copy link

DickyNet commented Nov 30, 2023

@DickyNet 提供下配置看一下

@DickyNet provides the configuration to take a look

exports.logger = {
type: isDev ? 'console' : 'dateFile',
console: {
handle: Console
},
file: {
handle: File,
backups: 10, // max chunk number
absolute: true,
maxLogSize: 50 * 1024, // 50M
filename: path.join(think.ROOT_PATH, 'logs/app.log')
},
dateFile: {
handle: DateFile,
level: 'ALL',
absolute: true,
pattern: '-yyyy-MM-dd',
alwaysIncludePattern: true,
filename: path.join(think.ROOT_PATH, 'logs/app.log')
}
};

@DickyNet
Copy link

DickyNet commented Dec 2, 2023

@DickyNet 提供下配置看一下

@DickyNet provides the configuration to take a look

有进展吗?

@lizheming lizheming self-assigned this Dec 4, 2023
@DickyNet
Copy link

@DickyNet 提供下配置看一下

@DickyNet provides the configuration to take a look

有进展么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants