如何更改CruiseControl日志文件的位置?

时间:2023-01-12 23:53:38

The server where CruiseControl.NET is already installed is running out of disk space.

已安装CruiseControl.NET的服务器磁盘空间不足。

Is there a simple way of moving the CruiseControl logs to another drive?

有没有一种简单的方法将CruiseControl日志移动到另一个驱动器?

2 个解决方案

#1


Found it here.. http://confluence.public.thoughtworks.org/display/CCNET/Xml+Log+Publisher

在这里找到它.. http://confluence.public.thoughtworks.org/display/CCNET/Xml+Log+Publisher

The Xml Log Publisher is used to create the log files used by the CruiseControl.NET Web Dashboard, so if you don't define an section the Dashboard will not function correctly. You should place the in the section, after any File Merge Tasks, in your Project Configuration Block. Examples

Xml Log Publisher用于创建CruiseControl.NET Web仪表板使用的日志文件,因此如果您没有定义部分,则仪表板将无法正常运行。您应该在项目配置块中的任何文件合并任务之后放置在该部分中。例子

Minimalist example:

<xmllogger />

Full example:

<xmllogger logDir="c:\myproject\buildlogs" />

#2


Regardless of moving logs somewhere else, you should also use Artifact Cleanup Publisher to delete older logs. It is done on a per-project base, usually set up to keep X last build logs or logs from X last days. Also, storing project's workingDirectory and artifactDirectory on a separate, large drive is usually a good idea.

无论在其他地方移动日志,您还应该使用Artifact Cleanup Publisher删除旧日志。它是在每个项目的基础上完成的,通常设置为在最后几天保留X最后构建日志或来自X的日志。此外,将项目的workingDirectory和artifactDirectory存储在单独的大型驱动器上通常是个好主意。

#1


Found it here.. http://confluence.public.thoughtworks.org/display/CCNET/Xml+Log+Publisher

在这里找到它.. http://confluence.public.thoughtworks.org/display/CCNET/Xml+Log+Publisher

The Xml Log Publisher is used to create the log files used by the CruiseControl.NET Web Dashboard, so if you don't define an section the Dashboard will not function correctly. You should place the in the section, after any File Merge Tasks, in your Project Configuration Block. Examples

Xml Log Publisher用于创建CruiseControl.NET Web仪表板使用的日志文件,因此如果您没有定义部分,则仪表板将无法正常运行。您应该在项目配置块中的任何文件合并任务之后放置在该部分中。例子

Minimalist example:

<xmllogger />

Full example:

<xmllogger logDir="c:\myproject\buildlogs" />

#2


Regardless of moving logs somewhere else, you should also use Artifact Cleanup Publisher to delete older logs. It is done on a per-project base, usually set up to keep X last build logs or logs from X last days. Also, storing project's workingDirectory and artifactDirectory on a separate, large drive is usually a good idea.

无论在其他地方移动日志,您还应该使用Artifact Cleanup Publisher删除旧日志。它是在每个项目的基础上完成的,通常设置为在最后几天保留X最后构建日志或来自X的日志。此外,将项目的workingDirectory和artifactDirectory存储在单独的大型驱动器上通常是个好主意。