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(): ../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?

1 comment
Comment actions Permalink


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.


Please sign in to leave a comment.