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

日志切割只是清空清空存在日志 #15

Open
daiguadaidai opened this issue May 3, 2017 · 1 comment
Open

日志切割只是清空清空存在日志 #15

daiguadaidai opened this issue May 3, 2017 · 1 comment

Comments

@daiguadaidai
Copy link

在指定日志切割时间的时候,发现切割的方式只是将原有的日志情况。并不是想象的会吧。日志重命名,再重新生成一下新的日志

@diyidihalazi
Copy link
Contributor

  1. mysql-sniffer的切割方式是日志重命名,然后创建新的日志文件。
  2. -s 1意味着会每隔一分钟切换一次日志文件,此时会把现在的日志文件13470.log重名为像2018-05-02-13:43-13470.log这样的格式,然后创建新的日志文件。
  3. 至于你说的问题,你可以检查下你的使用方式,或者把你的使用方式发出来看看。

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

2 participants