Moving logs to different location

Hi there,

How can I tell the TeamCity server to produce its log files in a different directory from the default? We currently have a separate volume for our log files, and we have symlinked the TeamCity logs directory to point there, but in the catalina.out log file we are seeing warning/errors such as:

Cannot call setFile(): java.io.FileNotFoundException: ../logs/teamcity-server.log (No such file or directory)


And we wonder if this could be caused by us symlinking instead of correctly telling TeamCity to use a different directory.

Any thoughts?

Steve
1 comment

Steven,

The errors like you pointed out are probably not be related to symlinking.

Please refer to the doc section on setting up logging property when you run TeamCity not via undled scripts. Particularly, I'd try setting "teamcity_logs" JVM option to a directory with absolute path.

0

Please sign in to leave a comment.