log\FileTarget $rotateByCopy

$rotateByCopy public property

Whether to rotate log files by copy and truncate in contrast to rotation by renaming files. Defaults to true to be more compatible with log tailers and is windows systems which do not play well with rename on open files. Rotation by renaming however is a bit faster.

The problem with windows systems where the rename() function does not work with files that are opened by some process is described in a comment by Martin Pelletier in the PHP documentation. By setting rotateByCopy to true you can work around this problem.

public boolean $rotateByCopy = true
doc_Yii
2016-10-30 17:06:51
Comments
Leave a Comment

Please login to continue.