热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

phpfpm日志文件_日志文件问题CircularLogArchiver

php-fpm日志文件Loggingisagoodthingbutunfortunately,itcomesatacostofdiskspace.andifleftunchecki

php-fpm日志文件

Logging is a good thing but unfortunately, it comes at a cost of disk space. and if left uncheck it can lead to systems running out of space.

日志记录是一件好事,但是不幸的是,它是以磁盘空间为代价的。 如果不选中它,可能导致系统空间不足。

If the particular system supports this, circular logging should be enabled to mitigate. Circular logging works but overwriting oldest logs first.

如果特定系统支持此功能,则应启用循环日志记录以缓解这种情况。 循环日志记录有效,但首先覆盖最旧的日志。

cl.png

Above shows the process to enable circular logging in Exchange
上面显示了在Exchange中启用循环日志记录的过程

This is great if the system supports it however if it doesn't, it forces administrators to manually clear logs, preferably before disk runs out of space.

如果系统支持它,则非常好,但是如果系统不支持,则它会强制管理员手动清除日志,最好在磁盘空间不足之前手动清除日志。

This is where CircularLogArchiver comes in. It enables circular logging functionality on any log files.

这是CircularLogArchiver的来源。它启用任何日志文件上的循环日志功能。

Usage : CircularLogArchiver.exe GO [/LP:LogPath] [/LE:LogExtention] [/AI:ArchiveInterval] [/AOT:ArchiveOlderThan] [/DAOT:DontArchiveOlderThan] [/DOT:DeleteOlderThan]

用法: CircularLogArchiver.exe GO [/ LP:LogPath] [/ LE:LogExtension] [/ AI:ArchiveInterval] [/ AOT:ArchiveOlderThan] [/ DAOT:DontArchiveOlderThan] [/ DOT:DeleteOlderThan]

Example : CircularLogArchiver.exe GO /LP:”C:\Logs” /LE:”*.log” /AI:”M” /AOT:”1″ /DAOT:”3″ /DOT:”3″

示例: CircularLogArchiver.exe GO /LP:“C:\Logs”/LE:“*.log”/AI:“M”/AOT:“1”/DAOT:“3”/DOT:“3”

Example above will archive all files in “C:\Logs” with *.log extension that are between one and three months old and it will delete files older than three months

上面的示例将存档扩展名为* .log且在“ C:\ Logs”中的文件,这些文件的存在时间为一到三个月,并且它将删除三个月以上的文件

CircularLogArhiver can be downloaded from http://blog.ittelligence.com/wp-content/uploads/2017/10/CircularLogArchiver.zip

可以从http://blog.ittelligence.com/wp-content/uploads/2017/10/CircularLogArchiver.zip下载CircularLogArhiver

clbefore.png

Before 之前
clafter.png

After



Please do not forget to press the "Thumb's Up" button if this article was helpful and valuable for EE members. 如果本文对EE成员有用且有价值,请不要忘记按“ Thumb's Up”按钮。

It also provides me with positive feedback. Thank you!  

它还为我提供了积极的反馈。 谢谢!  

翻译自: https://www.experts-exchange.com/articles/29108/Log-file-problem-CircularLogArchiver.html

php-fpm日志文件



推荐阅读
author-avatar
青锋寒万岁
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有