Initial Commit

This commit is contained in:
vesem 2021-01-18 15:27:50 -05:00
commit d4be261458
16121 changed files with 678936 additions and 0 deletions

23
.editorconfig Normal file
View File

@ -0,0 +1,23 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Change these settings to your own preference
indent_style = space
indent_size = 4
[*.{ts,tsx,js,jsx,json,css,scss,yml}]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

9
.eslintignore Normal file
View File

@ -0,0 +1,9 @@
node_modules/
src/main/docker/
src/test/javascript/protractor.conf.js
src/test/javascript/jest.conf.js
webpack/
target/
build/
node/
postcss.config.js

26
.eslintrc.json Normal file
View File

@ -0,0 +1,26 @@
{
"plugins": ["@typescript-eslint/tslint"],
"extends": ["jhipster"],
"parserOptions": {
"project": "./tsconfig.base.json"
},
"rules": {
"@typescript-eslint/tslint/config": [
"error",
{
"lintFile": "./tslint.json"
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"no-console": "warn",
"@typescript-eslint/ban-ts-ignore": "off"
}
}

150
.gitattributes vendored Normal file
View File

@ -0,0 +1,150 @@
# This file is inspired by https://github.com/alexkaratarakis/gitattributes
#
# Auto detect text files and perform LF normalization
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
# The above will handle all files NOT found below
# These files are text and should be normalized (Convert crlf => lf)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.coffee text
*.css text
*.cql text
*.df text
*.ejs text
*.html text
*.java text
*.js text
*.json text
*.less text
*.properties text
*.sass text
*.scss text
*.sh text eol=lf
*.sql text
*.txt text
*.ts text
*.xml text
*.yaml text
*.yml text
# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.markdown text
*.md text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after.
*.svg binary
#*.svg text
*.eps binary
# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.jar binary
*.war binary
## LINTERS
.csslintrc text
.eslintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
## CONFIGS
*.conf text
*.config text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.npmignore text
## HEROKU
Procfile text
.slugignore text
## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.swc binary
*.swf binary
*.webm binary
## ARCHIVES
*.7z binary
*.gz binary
*.rar binary
*.tar binary
*.zip binary
## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

151
.gitignore vendored Normal file
View File

@ -0,0 +1,151 @@
######################
# Project Specific
######################
/src/main/webapp/content/css/main.css
/target/classes/static/**
/src/test/javascript/coverage/
######################
# Node
######################
/node/
node_tmp/
node_modules/
npm-debug.log.*
/.awcache/*
/.cache-loader/*
######################
# SASS
######################
.sass-cache/
######################
# Eclipse
######################
*.pydevproject
.project
.metadata
tmp/
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
.factorypath
/src/main/resources/rebel.xml
# External tool builders
.externalToolBuilders/**
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
# STS-specific
/.sts4-cache/*
######################
# IntelliJ
######################
.idea/
*.iml
*.iws
*.ipr
*.ids
*.orig
classes/
out/
######################
# Visual Studio Code
######################
.vscode/
######################
# Maven
######################
/log/
/target/
######################
# Gradle
######################
.gradle/
/build/
######################
# Package Files
######################
*.jar
*.war
*.ear
*.db
######################
# Windows
######################
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
######################
# Mac OSX
######################
.DS_Store
.svn
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
######################
# Directories
######################
/bin/
/deploy/
######################
# Logs
######################
*.log*
######################
# Others
######################
*.class
*.*~
*~
.merge_file*
######################
# Gradle Wrapper
######################
!gradle/wrapper/gradle-wrapper.jar
######################
# Maven Wrapper
######################
!.mvn/wrapper/maven-wrapper.jar
######################
# ESLint
######################
.eslintcache
/fullchain.pem
/privkey.pem
/idea.gdsl

5
.huskyrc Normal file
View File

@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged"
}
}

74
.jhipster/Army.json Normal file
View File

@ -0,0 +1,74 @@
{
"name": "Army",
"fields": [
{
"fieldName": "armyDescription",
"fieldType": "byte[]",
"fieldTypeBlobContent": "text"
},
{
"fieldName": "armyName",
"fieldType": "String",
"fieldValidateRules": ["required"]
},
{
"fieldName": "armyFaction",
"fieldType": "String"
},
{
"fieldName": "armyPowerLevel",
"fieldType": "Long"
},
{
"fieldName": "armyPoints",
"fieldType": "Long"
},
{
"fieldName": "armyPointsOrPL",
"fieldType": "Boolean"
},
{
"fieldName": "requisition",
"fieldType": "Long"
},
{
"fieldName": "battleTally",
"fieldType": "Long"
},
{
"fieldName": "battlesWon",
"fieldType": "Long"
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "user",
"otherEntityRelationshipName": "army",
"relationshipValidateRules": "required",
"relationshipName": "owner",
"otherEntityField": "login"
},
{
"relationshipName": "units",
"otherEntityName": "unitArmy",
"relationshipType": "one-to-many",
"otherEntityRelationshipName": "army"
}
],
"changelogDate": "20200727033716",
"entityTableName": "army",
"dto": "mapstruct",
"pagination": "no",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*",
"searchEngine": false,
"databaseType": "sql"
}

122
.jhipster/UnitArmy.json Normal file
View File

@ -0,0 +1,122 @@
{
"name": "UnitArmy",
"fields": [
{
"fieldName": "unitName",
"fieldType": "String"
},
{
"fieldName": "unitDescription",
"fieldType": "byte[]",
"fieldTypeBlobContent": "text"
},
{
"fieldName": "enemyUnitsDestroyed",
"fieldType": "Long"
},
{
"fieldName": "enemyPsychicDestroyed",
"fieldType": "Long"
},
{
"fieldName": "enemyRangedDestroyed",
"fieldType": "Long"
},
{
"fieldName": "enemyMeleeDestroyed",
"fieldType": "Long"
},
{
"fieldName": "agendaOneTally",
"fieldType": "Long"
},
{
"fieldName": "agendaTwoTally",
"fieldType": "Long"
},
{
"fieldName": "agendaThreeTally",
"fieldType": "Long"
},
{
"fieldName": "equipment",
"fieldType": "String"
},
{
"fieldName": "psychicPowersTaken",
"fieldType": "String"
},
{
"fieldName": "warlordTraits",
"fieldType": "String"
},
{
"fieldName": "relics",
"fieldType": "String"
},
{
"fieldName": "otherUpgrades",
"fieldType": "byte[]",
"fieldTypeBlobContent": "text"
},
{
"fieldName": "crusadePointsUnit",
"fieldType": "Integer"
},
{
"fieldName": "experiencePoints",
"fieldType": "Integer"
},
{
"fieldName": "battlesPlayed",
"fieldType": "Integer"
},
{
"fieldName": "battlesSurvived",
"fieldType": "Integer"
},
{
"fieldName": "rank",
"fieldType": "String"
},
{
"fieldName": "battleHonours",
"fieldType": "String"
},
{
"fieldName": "battleScars",
"fieldType": "String"
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "unitBase",
"otherEntityRelationshipName": "unitArmy",
"relationshipValidateRules": "required",
"relationshipName": "unitBase",
"otherEntityField": "unitName"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "army",
"otherEntityRelationshipName": "unitArmy",
"relationshipValidateRules": "required",
"relationshipName": "army",
"otherEntityField": "armyName"
}
],
"changelogDate": "20200727033816",
"entityTableName": "unit_army",
"dto": "no",
"pagination": "no",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*",
"searchEngine": false,
"databaseType": "sql"
}

34
.jhipster/UnitBase.json Normal file
View File

@ -0,0 +1,34 @@
{
"name": "UnitBase",
"fields": [
{
"fieldName": "unitName",
"fieldType": "String",
"fieldValidateRules": ["required"]
},
{
"fieldName": "unitPowerLevel",
"fieldType": "Long"
},
{
"fieldName": "unitPoints",
"fieldType": "Long"
},
{
"fieldName": "battlefieldRole",
"fieldType": "String"
}
],
"relationships": [],
"changelogDate": "20200727033916",
"entityTableName": "unit_base",
"dto": "mapstruct",
"pagination": "no",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*"
}

3
.lintstagedrc.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
'{,src/**/}*.{json,md,yml,ts,css,scss}': ['prettier --write', 'git add']
};

117
.mvn/wrapper/MavenWrapperDownloader.java vendored Normal file
View File

@ -0,0 +1,117 @@
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = "0.5.6";
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
String username = System.getenv("MVNW_USERNAME");
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
}
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}

BIN
.mvn/wrapper/maven-wrapper.jar vendored Normal file

Binary file not shown.

2
.mvn/wrapper/maven-wrapper.properties vendored Normal file
View File

@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

8
.prettierignore Normal file
View File

@ -0,0 +1,8 @@
node_modules
target
build
package-lock.json
.git
.mvn
gradle
.gradle

12
.prettierrc Normal file
View File

@ -0,0 +1,12 @@
# Prettier configuration
printWidth: 140
singleQuote: true
tabWidth: 2
useTabs: false
# js and ts rules:
arrowParens: avoid
# jsx and tsx rules:
jsxBracketSameLine: false

44
.yo-rc.json Normal file
View File

@ -0,0 +1,44 @@
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.warhammer"
},
"jhipsterVersion": "6.10.1",
"applicationType": "monolith",
"baseName": "crusadetracker",
"packageName": "com.warhammer",
"packageFolder": "com/warhammer",
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "mysql",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSwaggerCodegen": false,
"jwtSecretKey": "NWI2NGNlN2E3MmQyYzcyMzg4NzJiY2Y4ZGM3NDgwN2MwNjAzNDA2NDhhNDM4MmEzNjQ2ZDk2ZjgxZTlhNDFkMzI3ZjAxYzdlYzEyZTE0NWM4ZTkxZmJlZDlkNTI2NTZiYWQwMjMxNzAxZTJlZDA1M2EzNjdlNGZmNjEzNTkyNjM=",
"embeddableLaunchScript": false,
"useSass": true,
"clientPackageManager": "npm",
"clientFramework": "angularX",
"clientTheme": "none",
"clientThemeVariant": "",
"creationTimestamp": 1595820846600,
"testFrameworks": [],
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [],
"enableTranslation": false,
"blueprints": [],
"appsFolders": ["crusadetracker"],
"directoryPath": "../",
"monitoring": "no",
"consoleOptions": []
}
}

84
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,84 @@
#!/usr/bin/env groovy
node {
stage('checkout') {
checkout scm
}
stage('check java') {
sh "java -version"
}
stage('clean') {
sh "chmod +x mvnw"
sh "./mvnw -ntp clean -P-webpack"
}
stage('nohttp') {
sh "./mvnw -ntp checkstyle:check"
}
stage('install tools') {
sh "./mvnw -ntp com.github.eirslett:frontend-maven-plugin:install-node-and-npm -DnodeVersion=v12.16.1 -DnpmVersion=6.14.5"
}
stage('npm install') {
sh "./mvnw -ntp com.github.eirslett:frontend-maven-plugin:npm"
}
stage('Tests') {
sh "./mvnw test"
}
if (env.BRANCH_NAME == "master") {
stage('packaging') {
sh "./mvnw -ntp verify -P-webpack -Pprod -DskipTests"
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
stage("Prepare for containerizing") {
withCredentials([file(credentialsId: 'privatekey', variable: 'privateKey'),
file(credentialsId: 'publickey', variable: 'publicKey')]){
sh "cp \$privateKey ./"
sh "cp \$publicKey ./"
}
}
stage("Run docker compose") {
sh "docker-compose build"
withCredentials([usernamePassword(credentialsId: 'doApi', passwordVariable: 'doApi', usernameVariable: '')]) {
sh "docker login -u \$doApi -p \$doApi registry.digitalocean.com"
sh "docker push registry.digitalocean.com/nerdfortress/crusadetracker_nginx"
sh "docker push registry.digitalocean.com/nerdfortress/crusadetracker"
}
}
stage("Cleanup") {
sh "rm -f ./privkey.pem ./fullchain.pem"
}
}
}
// stage('backend tests') {
// try {
// sh "./mvnw -ntp verify -P-webpack"
// } catch(err) {
// throw err
// } finally {
// junit '**/target/test-results/**/TEST-*.xml'
// }
// }
//
// stage('frontend tests') {
// try {
// npm install
// npm test
// } catch(err) {
// throw err
// } finally {
// junit '**/target/test-results/**/TEST-*.xml'
// }
// }
// def dockerImage
// stage('publish docker') {
// // A pre-requisite to this step is to setup authentication to the docker registry
// // https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#authentication-methods
// sh "./mvnw -ntp jib:build"
// }

14
README-DOCKER-COMPOSE.md Normal file
View File

@ -0,0 +1,14 @@
# JHipster generated Docker-Compose configuration
## Usage
Launch all your infrastructure by running: `docker-compose up -d`.
## Configured Docker services
### Applications and dependencies:
- crusadetracker (monolith application)
- crusadetracker's mysql database
### Additional Services:

237
README.md Normal file
View File

@ -0,0 +1,237 @@
# crusadetracker
This application was generated using JHipster 6.10.1, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v6.10.1](https://www.jhipster.tech/documentation-archive/v6.10.1).
## Development
Before you can build this project, you must install and configure the following dependencies on your machine:
1. [Node.js][]: We use Node to run a development web server and build the project.
Depending on your system, you can install Node either from source or as a pre-packaged bundle.
After installing Node, you should be able to run the following command to install development tools.
You will only need to run this command when dependencies change in [package.json](package.json).
```
npm install
```
We use npm scripts and [Webpack][] as our build system.
Run the following commands in two separate terminals to create a blissful development experience where your browser
auto-refreshes when files change on your hard drive.
```
./mvnw
npm start
```
Npm is also used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by
specifying a newer version in [package.json](package.json). You can also run `npm update` and `npm install` to manage dependencies.
Add the `help` flag on any command to see how you can use it. For example, `npm help update`.
The `npm run` command will list all of the scripts available to run for this project.
### PWA Support
JHipster ships with PWA (Progressive Web App) support, and it's turned off by default. One of the main components of a PWA is a service worker.
The service worker initialization code is commented out by default. To enable it, uncomment the following code in `src/main/webapp/index.html`:
```html
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js').then(function () {
console.log('Service Worker Registered');
});
}
</script>
```
Note: [Workbox](https://developers.google.com/web/tools/workbox/) powers JHipster's service worker. It dynamically generates the `service-worker.js` file.
### Managing dependencies
For example, to add [Leaflet][] library as a runtime dependency of your application, you would run following command:
```
npm install --save --save-exact leaflet
```
To benefit from TypeScript type definitions from [DefinitelyTyped][] repository in development, you would run following command:
```
npm install --save-dev --save-exact @types/leaflet
```
Then you would import the JS and CSS files specified in library's installation instructions so that [Webpack][] knows about them:
Edit [src/main/webapp/app/vendor.ts](src/main/webapp/app/vendor.ts) file:
```
import 'leaflet/dist/leaflet.js';
```
Edit [src/main/webapp/content/scss/vendor.scss](src/main/webapp/content/scss/vendor.scss) file:
```
@import '~leaflet/dist/leaflet.css';
```
Note: There are still a few other things remaining to do for Leaflet that we won't detail here.
For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].
### Using Angular CLI
You can also use [Angular CLI][] to generate some custom client code.
For example, the following command:
```
ng generate component my-component
```
will generate few files:
```
create src/main/webapp/app/my-component/my-component.component.html
create src/main/webapp/app/my-component/my-component.component.ts
update src/main/webapp/app/app.module.ts
```
## Building for production
### Packaging as jar
To build the final jar and optimize the crusadetracker application for production, run:
```
./mvnw -Pprod clean verify
```
This will concatenate and minify the client CSS and JavaScript files. It will also modify `index.html` so it references these new files.
To ensure everything worked, run:
```
java -jar target/*.jar
```
Then navigate to [http://localhost:8080](http://localhost:8080) in your browser.
Refer to [Using JHipster in production][] for more details.
### Packaging as war
To package your application as a war in order to deploy it to an application server, run:
```
./mvnw -Pprod,war clean verify
```
## Testing
To launch your application's tests, run:
```
./mvnw verify
```
### Client tests
Unit tests are run by [Jest][] and written with [Jasmine][]. They're located in [src/test/javascript/](src/test/javascript/) and can be run with:
```
npm test
```
For more information, refer to the [Running tests page][].
### Code quality
Sonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:
```
docker-compose -f src/main/docker/sonar.yml up -d
```
You can run a Sonar analysis with using the [sonar-scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) or by using the maven plugin.
Then, run a Sonar analysis:
```
./mvnw -Pprod clean verify sonar:sonar
```
If you need to re-run the Sonar phase, please be sure to specify at least the `initialize` phase since Sonar properties are loaded from the sonar-project.properties file.
```
./mvnw initialize sonar:sonar
```
For more information, refer to the [Code quality page][].
## Using Docker to simplify development (optional)
You can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the [src/main/docker](src/main/docker) folder to launch required third party services.
For example, to start a mysql database in a docker container, run:
```
docker-compose -f src/main/docker/mysql.yml up -d
```
To stop it and remove the container, run:
```
docker-compose -f src/main/docker/mysql.yml down
```
You can also fully dockerize your application and all the services that it depends on.
To achieve this, first build a docker image of your app by running:
```
./mvnw -Pprod verify jib:dockerBuild
```
Then run:
```
docker-compose -f src/main/docker/app.yml up -d
```
For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (`jhipster docker-compose`), which is able to generate docker configurations for one or several JHipster applications.
## Continuous Integration (optional)
To configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.
[jhipster homepage and latest documentation]: https://www.jhipster.tech
[jhipster 6.10.1 archive]: https://www.jhipster.tech/documentation-archive/v6.10.1
[using jhipster in development]: https://www.jhipster.tech/documentation-archive/v6.10.1/development/
[using docker and docker-compose]: https://www.jhipster.tech/documentation-archive/v6.10.1/docker-compose
[using jhipster in production]: https://www.jhipster.tech/documentation-archive/v6.10.1/production/
[running tests page]: https://www.jhipster.tech/documentation-archive/v6.10.1/running-tests/
[code quality page]: https://www.jhipster.tech/documentation-archive/v6.10.1/code-quality/
[setting up continuous integration]: https://www.jhipster.tech/documentation-archive/v6.10.1/setting-up-ci/
[node.js]: https://nodejs.org/
[yarn]: https://yarnpkg.org/
[webpack]: https://webpack.github.io/
[angular cli]: https://cli.angular.io/
[browsersync]: https://www.browsersync.io/
[jest]: https://facebook.github.io/jest/
[jasmine]: https://jasmine.github.io/2.0/introduction.html
[protractor]: https://angular.github.io/protractor/
[leaflet]: https://leafletjs.com/
[definitelytyped]: https://definitelytyped.org/

37
angular.json Normal file
View File

@ -0,0 +1,37 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"crusadetracker": {
"root": "",
"sourceRoot": "src/main/webapp",
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"skipTests": true,
"style": "scss"
},
"@schematics/angular:directive": {
"skipTests": true
},
"@schematics/angular:guard": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
},
"@schematics/angular:service": {
"skipTests": true
}
},
"prefix": "jhi",
"architect": {}
}
},
"defaultProject": "crusadetracker",
"cli": {
"packageManager": "npm",
"analytics": false
}
}

21
checkstyle.xml Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"https://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<!-- Configure checker to use UTF-8 encoding -->
<property name="charset" value="UTF-8"/>
<!-- Configure checker to run on files with these extensions -->
<property name="fileExtensions" value=""/>
<!-- For detailed checkstyle configuration, see https://github.com/spring-io/nohttp/tree/master/nohttp-checkstyle -->
<module name="io.spring.nohttp.checkstyle.check.NoHttpCheck">
<property name="whitelist" value="http://maven.apache.org/POM/4.0.0&#10;
http://www.w3.org/2001/XMLSchema-instance&#10;http://maven.apache.org/maven-v4_0_0.xsd"/>
</module>
<!-- Allow suppression with comments
// CHECKSTYLE:OFF
... ignored content ...
// CHECKSTYLE:ON
-->
<module name="SuppressWithPlainTextCommentFilter"/>
</module>

View File

@ -0,0 +1,18 @@
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!--<!ENTITY % auth-config SYSTEM "../../../db/resources/auth-config.dtd">-->
<!ENTITY % auth-config SYSTEM "../auth-config.dtd">
%auth-config;
<!--
This is a DTD for Jetbrains BuildServer authentication presets files,
placed at $HOME/.BuildServer/config/_auth/*.xml
-->
<!ELEMENT auth-preset (description?, auth-modules)>
<!ATTLIST auth-preset
name CDATA #REQUIRED
>
<!ELEMENT description (#PCDATA)>
<!ATTLIST description EMPTY>

13
config/_auth/default.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="Default">
<description>Built-in authentication (basic HTTP and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Default">
<property key="freeRegistrationAllowed">true</property>
</auth-module>
<auth-module type="Token-Auth"/>
<auth-module type="HTTP-Basic"/>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,13 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="Default">
<description>Built-in authentication (basic HTTP and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Default">
<property key="freeRegistrationAllowed">true</property>
</auth-module>
<auth-module type="Token-Auth"/>
<auth-module type="HTTP-Basic"/>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,14 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="Active Directory (LDAP with NTLM)">
<description>LDAP authentication (basic HTTP, NTLM and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Token-Auth"/>
<auth-module type="LDAP"/>
<auth-module type="HTTP-Basic"/>
<auth-module type="HTTP-NTLM">
<property key="allowCreatingNewUsersByLogin">false</property>
</auth-module>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,14 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="Active Directory (LDAP with NTLM)">
<description>LDAP authentication (basic HTTP, NTLM and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Token-Auth"/>
<auth-module type="LDAP"/>
<auth-module type="HTTP-Basic"/>
<auth-module type="HTTP-NTLM">
<property key="allowCreatingNewUsersByLogin">false</property>
</auth-module>
</auth-modules>
</auth-preset>

11
config/_auth/ldap.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="LDAP">
<description>LDAP authentication (basic HTTP and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Token-Auth"/>
<auth-module type="LDAP"/>
<auth-module type="HTTP-Basic"/>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,11 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="LDAP">
<description>LDAP authentication (basic HTTP and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Token-Auth"/>
<auth-module type="LDAP"/>
<auth-module type="HTTP-Basic"/>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,12 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="Microsoft Windows Domain">
<description>Microsoft Windows domain authentication (basic HTTP, NTLM and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Token-Auth"/>
<auth-module type="NT-Domain"/>
<auth-module type="HTTP-Basic"/>
<auth-module type="HTTP-NTLM"/>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,12 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE auth-preset SYSTEM "auth-preset.dtd">
<auth-preset name="Microsoft Windows Domain">
<description>Microsoft Windows domain authentication (basic HTTP, NTLM and Token-Based Authentication)</description>
<auth-modules>
<auth-module type="Token-Auth"/>
<auth-module type="NT-Domain"/>
<auth-module type="HTTP-Basic"/>
<auth-module type="HTTP-NTLM"/>
</auth-modules>
</auth-preset>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="TRACE" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="DEBUG" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="TRACE" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="DEBUG" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="20" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="INFO" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="INFO" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "./log4j.dtd">
<!--
The file can be modified without application restart, but some changes can still require restart to take effect.
You might also need to increase the number of files to store to prevent logs from quick rotation
<param name="maxBackupIndex" value="20"/>
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="WARN" />
</filter>
</appender>
<appender name="CONSOLE-ERROR" class="org.apache.log4j.ConsoleAppender">
<param name="target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.util.SpringErrorsFilter">
<param name="LevelMin" value="ERROR" />
</filter>
</appender>
<appender name="ROLL" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-server.log" />
<param name="maxBackupIndex" value="10" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="javasvn.output" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.plugins.spring.SpringPluginLoader$TeamCityPlugin*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.vcs.impl.VcsContentCache" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.LDAP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.maintenance.WebDispatcherServlet" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.CLEANUP" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.AUTH*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.nuget.*" />
<param name="MaxDenyLevel" value="INFO" />
</filter>
<filter class="jetbrains.buildServer.log.CategoryFilter">
<param name="DenyCategory" value="jetbrains.buildServer.web.ResponseFragmentFilter*" />
<param name="MaxDenyLevel" value="DEBUG" />
</filter>
</appender>
<appender name="ROLL.NODES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nodes.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m %n" />
</layout>
</appender>
<appender name="ROLL.VCS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs.log" />
<param name="maxBackupIndex" value="3" />
<!--REPLACE PREVIOUS LINE WITH UNCOMMENTED LINE TO STORE MORE LOGS-->
<!-- <param name="maxBackupIndex" value="20"/> -->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS_STATES" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-vcs-states.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VCS.REMOTE.RUN" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-remote-run.log" />
<param name="maxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.WS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ws.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ACTIVITIES.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-activities.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLOUDS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clouds.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SQL.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-sql.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30t - %m%n" />
</layout>
</appender>
<appender name="CLEANUP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-cleanup.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="SVN.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-svn.log" />
<param name="maxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="TFS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-tfs.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="STARTEAM.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-starteam.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="CLEARCASE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-clearcase.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AUTH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-auth.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%30.30t] - %m%n" />
</layout>
</appender>
<appender name="AGENT_STATISTICS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agent-statistics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
<appender name="XMLRPC.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-xmlrpc.log" />
<param name="maxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="LDAP.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-ldap.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="VCS-CONTENT-CACHE" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/vcs-content-cache.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] [%t] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="REST.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-rest.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p [%15.15t] - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FREEMARKER.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-freemarker.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NOTIFICATIONS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-notifications.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="AGENTPUSH.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-agentPush.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DIAG.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diagnostics.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="NUGET.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-nuget.log" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ROLL.VERSIONED_SETTINGS" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-versioned-settings.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="FLAKY_TESTS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-flaky-tests.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="ISSUE_TRACKERS.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-issue-trackers.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<appender name="DISK_USAGE.LOG" class="jetbrains.buildServer.util.TCRollingFileAppender">
<param name="file" value="${teamcity_logs}/teamcity-diskusage.log" />
<param name="maxBackupIndex" value="3" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d] %6p - %30.30c - %m%n" />
</layout>
</appender>
<!-- categories -->
<category name="jetbrains.buildServer.nuget" additivity="false">
<priority value="INFO" />
<appender-ref ref="NUGET.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
<appender-ref ref="ROLL" />
</category>
<category name="jetbrains.buildServer.agentpush" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENTPUSH.LOG" />
</category>
<category name="jetbrains.buildServer.AUTH" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="AUTH.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.clearcase" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLEARCASE.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.starteam" additivity="false">
<priority value="INFO" />
<appender-ref ref="STARTEAM.LOG" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.tfs" additivity="false">
<priority value="INFO" />
<appender-ref ref="TFS.LOG" />
</category>
<category name="jetbrains.buildServer.XMLRPC" additivity="false">
<priority value="DEBUG" />
<appender-ref ref="XMLRPC.LOG" />
</category>
<category name="jetbrains.buildServer.AGENTSSTATISTICS" additivity="false">
<priority value="INFO" />
<appender-ref ref="AGENT_STATISTICS.LOG" />
</category>
<category name="javasvn.output" additivity="false">
<priority value="INFO" />
<appender-ref ref="SVN.LOG" />
</category>
<category name="jetbrains.buildServer.SQL" additivity="false">
<priority value="INFO" />
<appender-ref ref="SQL.LOG" />
</category>
<category name="jetbrains.buildServer.CLEANUP" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL" />
<appender-ref ref="CLEANUP.LOG" />
</category>
<category name="jetbrains.buildServer.LDAP" additivity="false">
<priority value="INFO" />
<appender-ref ref="LDAP.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.vcs.impl.VcsContentCache" additivity="false">
<priority value="INFO" />
<appender-ref ref="VCS-CONTENT-CACHE" />
</category>
<category name="jetbrains.buildServer.server.rest" additivity="false">
<priority value="INFO" />
<appender-ref ref="REST.LOG" />
</category>
<category name="jetbrains.buildServer.clouds.jetbrains.buildServer.serverSide.impl.FlushQueueVirtualAction" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
</category>
<category name="jetbrains.buildServer.clouds" additivity="false">
<priority value="INFO" />
<appender-ref ref="CLOUDS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.ACTIVITIES">
<priority value="INFO" />
<appender-ref ref="ACTIVITIES.LOG" />
</category>
<category name="jetbrains.buildServer.VCS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.VCS_STATES" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS_STATES" />
</category>
<category name="jetbrains.buildServer.buildTriggers.vcs.remoteRun" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VCS.REMOTE.RUN" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="jetbrains.buildServer.notification" additivity="false">
<priority value="INFO" />
<appender-ref ref="NOTIFICATIONS.LOG" />
<appender-ref ref="CONSOLE-ERROR" />
</category>
<category name="freemarker.runtime" additivity="false">
<priority value="OFF" />
<appender-ref ref="FREEMARKER.LOG" />
</category>
<category name="jetbrains.buildServer.WEBSOCKET" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.WS" />
</category>
<category name="net.sf.packtag.implementation.yui.JavaScriptErrorReporter">
<priority value="OFF" />
</category>
<category name="jetbrains.buildServer.diagnostic" additivity="false">
<priority value="INFO" />
<appender-ref ref="DIAG.LOG" />
</category>
<category name="jetbrains.buildServer.VERSIONED_SETTINGS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.impl.versionedSettings" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.VERSIONED_SETTINGS" />
</category>
<category name="jetbrains.buildServer.serverSide.flakyTestDetector" additivity="false">
<priority value="WARN" />
<appender-ref ref="FLAKY_TESTS.LOG" />
</category>
<category name="jetbrains.buildServer.ISSUE_TRACKERS" additivity="false">
<priority value="INFO" />
<appender-ref ref="ISSUE_TRACKERS.LOG" />
</category>
<category name="jetbrains.buildServer.serverSide.statistics.diskusage" additivity="false">
<priority value="ERROR" />
<appender-ref ref="DISK_USAGE.LOG" />
</category>
<category name="jetbrains.buildServer.SERVER.nodesCommunication" additivity="false">
<priority value="INFO" />
<appender-ref ref="ROLL.NODES" />
</category>
<category name="jetbrains.buildServer">
<!-- Set this to DEBUG to enable debug logging -->
<priority value="DEBUG" />
<appender-ref ref="ROLL" />
</category>
<category name="org.springframework">
<priority value="WARN" />
<appender-ref ref="ROLL" />
</category>
<category name="org.apache.maven.cli.logging">
<priority value="ERROR" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE-WARN" />
</root>
</log4j:configuration>

165
config/_logging/log4j.dtd Normal file
View File

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Authors: Chris Taylor, Ceki Gulcu. -->
<!-- A configuration element consists of optional renderer
elements,appender elements, categories and an optional root
element. -->
<!ELEMENT log4j:configuration (renderer*, appender*,category*,root?)>
<!-- The disable attribute takes a priority value such that all -->
<!-- logging statements with a prioroty equal or below this value are -->
<!-- disabled. -->
<!-- The disableOverride attribute allows the user to override any -->
<!-- BasicConfigurator.disable invocations made from within the -->
<!-- application. -->
<!-- By default, disableOverride is "null", meaning that we -->
<!-- do not touch the disable flag. -->
<!-- Setting the "debug" or "configDebug" attributes enable the printing -->
<!-- of internal log4j logging statements. -->
<!-- The "debug" and "configDebug" attributes are equivalent altough -->
<!-- the latter is deprecated and should no longer be used. -->
<!-- By default, debug and configDebug attributes are "null", meaning -->
<!-- that we not touch internal log4j logging settings. -->
<!ATTLIST log4j:configuration
xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
disable (debug|info|warn|error|fatal|null) "null"
disableOverride (true|false|null) "null"
debug (true|false|null) "null"
configDebug (true|false|null) "null"
>
<!-- DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED -->
<!-- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -->
<!-- DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED -->
<!-- Use "log4j:configuration" above instead of the "configuration" -->
<!-- element. -->
<!-- DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED -->
<!-- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -->
<!-- DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED -->
<!ELEMENT configuration (renderer*, appender*,category*,root?)>
<!ATTLIST configuration
disable (debug|info|warn|error|fatal|null) "null"
disableOverride (true|false|null) "null"
configDebug (true|false|null) "null"
>
<!-- renderer elements allow the user to customize the conversion of -->
<!-- message objects to String. -->
<!ELEMENT renderer EMPTY>
<!ATTLIST renderer
renderedClass CDATA #REQUIRED
renderingClass CDATA #REQUIRED
>
<!-- Appenders must have a name and a class. -->
<!-- Appenders may contain an error handler, a layout, optional parameters -->
<!-- and filters. They may also reference (or include) other appenders. -->
<!ELEMENT appender (errorHandler?, param*, layout?, filter*, appender-ref*)>
<!ATTLIST appender
name ID #REQUIRED
class CDATA #REQUIRED
>
<!ELEMENT layout (param*)>
<!ATTLIST layout
class CDATA #REQUIRED
>
<!ELEMENT filter (param*)>
<!ATTLIST filter
class CDATA #REQUIRED
>
<!-- ErrorHandlers can be of any class. They can admit any number of -->
<!-- parameters. -->
<!ELEMENT errorHandler (param*)>
<!ATTLIST errorHandler
class CDATA #REQUIRED
>
<!ELEMENT param EMPTY>
<!ATTLIST param
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!-- The priority class is org.apache.log4j.Priority by default -->
<!ELEMENT priority (param*)>
<!ATTLIST priority
class CDATA #IMPLIED
value CDATA #REQUIRED
>
<!-- If no priority element is specified, then the configurator MUST not -->
<!-- touch the priority of the named category. -->
<!ELEMENT category (param*, priority?, appender-ref*)>
<!ATTLIST category
class CDATA #IMPLIED
name CDATA #REQUIRED
additivity (true|false) "true"
>
<!ELEMENT appender-ref EMPTY>
<!ATTLIST appender-ref
ref IDREF #REQUIRED
>
<!-- If no priority element is specified, then the configurator MUST not -->
<!-- touch the priority of root. -->
<!-- The root category always exists and cannot be subclassed. -->
<!ELEMENT root (param*, priority?, appender-ref*)>
<!-- ==================================================================== -->
<!-- A logging event -->
<!-- ==================================================================== -->
<!ELEMENT log4j:eventSet (log4j:event*)>
<!ATTLIST log4j:eventSet
includesLocationInfo (true|false) "true"
>
<!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?,
log4j:locationInfo?) >
<!-- The timestamp format is application dependent. -->
<!ATTLIST log4j:event
category CDATA #REQUIRED
priority CDATA #REQUIRED
thread CDATA #REQUIRED
timestamp CDATA #REQUIRED
>
<!ELEMENT log4j:message (#PCDATA)>
<!ELEMENT log4j:NDC (#PCDATA)>
<!ELEMENT log4j:throwable (#PCDATA)>
<!ELEMENT log4j:locationInfo EMPTY>
<!ATTLIST log4j:locationInfo
class CDATA #REQUIRED
method CDATA #REQUIRED
file CDATA #REQUIRED
line CDATA #REQUIRED
>

View File

@ -0,0 +1,31 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, FAILED] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> failed ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> failed
${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,31 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, FAILED] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> failed ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> failed
${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,29 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, FAILED TO START] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> failed to start ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a>
failed to start ${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,29 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, FAILED TO START] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> failed to start ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a>
failed to start ${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,35 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#-- @ftlvariable name="buildType" type="jetbrains.buildServer.serverSide.SBuildType" -->
<#-- @ftlvariable name="project" type="jetbrains.buildServer.serverSide.SProject" -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, FAILING] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> is failing ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> is failing
${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,35 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#-- @ftlvariable name="buildType" type="jetbrains.buildServer.serverSide.SBuildType" -->
<#-- @ftlvariable name="project" type="jetbrains.buildServer.serverSide.SProject" -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, FAILING] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> is failing ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> is failing
${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,33 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, PROBABLY_HANGING] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> is probably hanging ${var.buildShortStatusDescription}.
Estimated duration: ${var.buildDurationEstimate}, overtime: ${var.buildDurationOvertime}
Last message was received on: ${var.buildLastMessageTimestamp} (${var.buildTimeSinceLastMessage} ago)
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> is probably hanging
${var.buildShortStatusDescription}
</div>
<div>Estimated duration: ${var.buildDurationEstimate}, overtime: ${var.buildDurationOvertime}</div>
<div>Last message was received on: ${var.buildLastMessageTimestamp} (${var.buildTimeSinceLastMessage} ago)</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,33 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, PROBABLY_HANGING] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> is probably hanging ${var.buildShortStatusDescription}.
Estimated duration: ${var.buildDurationEstimate}, overtime: ${var.buildDurationOvertime}
Last message was received on: ${var.buildLastMessageTimestamp} (${var.buildTimeSinceLastMessage} ago)
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> is probably hanging
${var.buildShortStatusDescription}
</div>
<div>Estimated duration: ${var.buildDurationEstimate}, overtime: ${var.buildDurationOvertime}</div>
<div>Last message was received on: ${var.buildLastMessageTimestamp} (${var.buildTimeSinceLastMessage} ago)</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,32 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign reporter>
<@resp.reporterDescription responsibility/>
</#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] You are assigned for investigation of build problems</#global>
<#global body>You are assigned for investigation of build problems (${project.fullName}):
<@common.build_problem_list buildProblems/>
Assigned by ${reporter}
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.myResponsibilitiesLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>You are assigned for investigation of build problems (${project.fullName?html}):</div>
<@common.build_problem_list_html buildProblems/>
<div>Assigned by ${reporter?html}.</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information on <a href='${link.myResponsibilitiesLink}'>investigations page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,32 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign reporter>
<@resp.reporterDescription responsibility/>
</#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] You are assigned for investigation of build problems</#global>
<#global body>You are assigned for investigation of build problems (${project.fullName}):
<@common.build_problem_list buildProblems/>
Assigned by ${reporter}
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.myResponsibilitiesLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>You are assigned for investigation of build problems (${project.fullName?html}):</div>
<@common.build_problem_list_html buildProblems/>
<div>Assigned by ${reporter?html}.</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information on <a href='${link.myResponsibilitiesLink}'>investigations page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,27 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign subj><@resp.subject responsibility 'build problems'/></#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] ${subj}</#global>
<#global body>${subj} (${project.fullName}).
<@common.build_problem_list buildProblems/>
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.allResponsibilitiesLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div><@resp.subject responsibility 'build problems'/> (${project.fullName?html}):</div>
<@common.build_problem_list_html buildProblems/>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information on <a href='${link.allResponsibilitiesLink}'>investigations page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,27 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign subj><@resp.subject responsibility 'build problems'/></#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] ${subj}</#global>
<#global body>${subj} (${project.fullName}).
<@common.build_problem_list buildProblems/>
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.allResponsibilitiesLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div><@resp.subject responsibility 'build problems'/> (${project.fullName?html}):</div>
<@common.build_problem_list_html buildProblems/>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information on <a href='${link.allResponsibilitiesLink}'>investigations page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,32 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "mute.ftl" as mute>
<#global subject>[<@common.subjMarker/>, MUTE] <@mute.buildProblemInfo buildProblems/> muted <@mute.inScope scopeBean/></#global>
<#global body>The following build problems muted <@mute.inScope scopeBean/>:
<@common.build_problem_list buildProblems/>
User: ${muteInfo.mutingUser.descriptiveName}
<@mute.comment muteInfo/>
<@mute.unmute unmuteModeBean 'build problem'/>
${link.mutedProblemsLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>The following build problems muted <@mute.inScope scopeBean/>:</div>
<@common.build_problem_list_html buildProblems/>
<div>
User: ${muteInfo.mutingUser.descriptiveName?html}
<br>
<@mute.comment muteInfo/>
<br>
<@mute.unmute unmuteModeBean 'build problem'/>
</div>
<div>More information on <a href='${link.mutedProblemsLink}'>muted problems page</a>.</div>
<@common.footerHtml/>
</#global>

View File

@ -0,0 +1,32 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "mute.ftl" as mute>
<#global subject>[<@common.subjMarker/>, MUTE] <@mute.buildProblemInfo buildProblems/> muted <@mute.inScope scopeBean/></#global>
<#global body>The following build problems muted <@mute.inScope scopeBean/>:
<@common.build_problem_list buildProblems/>
User: ${muteInfo.mutingUser.descriptiveName}
<@mute.comment muteInfo/>
<@mute.unmute unmuteModeBean 'build problem'/>
${link.mutedProblemsLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>The following build problems muted <@mute.inScope scopeBean/>:</div>
<@common.build_problem_list_html buildProblems/>
<div>
User: ${muteInfo.mutingUser.descriptiveName?html}
<br>
<@mute.comment muteInfo/>
<br>
<@mute.unmute unmuteModeBean 'build problem'/>
</div>
<div>More information on <a href='${link.mutedProblemsLink}'>muted problems page</a>.</div>
<@common.footerHtml/>
</#global>

View File

@ -0,0 +1,24 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "mute.ftl" as mute>
<#global subject>[<@common.subjMarker/>, MUTE] <@mute.buildProblemInfo buildProblems/> unmuted</#global>
<#global body>The following build problems are unmuted <@mute.inScope scopeBean/>:
<@common.build_problem_list buildProblems/>
<@mute.unmutedReason unmuteModeBean scopeBean 'build problem'/>
<@common.footer/></#global>
<#global bodyHtml>
<div>The following build problems are unmuted <@mute.inScope scopeBean/>:</div>
<@common.build_problem_list_html buildProblems/>
<div>
<@mute.unmutedReason unmuteModeBean scopeBean 'build problem'/>
</div>
<@common.footerHtml/>
</#global>

View File

@ -0,0 +1,24 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "mute.ftl" as mute>
<#global subject>[<@common.subjMarker/>, MUTE] <@mute.buildProblemInfo buildProblems/> unmuted</#global>
<#global body>The following build problems are unmuted <@mute.inScope scopeBean/>:
<@common.build_problem_list buildProblems/>
<@mute.unmutedReason unmuteModeBean scopeBean 'build problem'/>
<@common.footer/></#global>
<#global bodyHtml>
<div>The following build problems are unmuted <@mute.inScope scopeBean/>:</div>
<@common.build_problem_list_html buildProblems/>
<div>
<@mute.unmutedReason unmuteModeBean scopeBean 'build problem'/>
</div>
<@common.footerHtml/>
</#global>

View File

@ -0,0 +1,29 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, STARTED] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> started<#if build.triggeredBy.triggeredByUser> (triggered by ${build.triggeredBy.user.descriptiveName})</#if>.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> started
<#if build.triggeredBy.triggeredByUser>(triggered by ${build.triggeredBy.user.descriptiveName?html})</#if>
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,29 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, STARTED] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> started<#if build.triggeredBy.triggeredByUser> (triggered by ${build.triggeredBy.user.descriptiveName})</#if>.
<@resp.buildTypeInvestigation buildType false/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> started
<#if build.triggeredBy.triggeredByUser>(triggered by ${build.triggeredBy.user.descriptiveName?html})</#if>
</div>
<div><@resp.buildTypeInvestigation buildType false/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,31 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, SUCCESSFUL] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> successful ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType true/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> successful
${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType true/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,31 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#global subject>[<@common.subjMarker/>, SUCCESSFUL] Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Build ${project.fullName} / ${buildType.name} <@common.short_build_info build/> successful ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType true/>
<#if !build.agentLessBuild>Agent: ${agentName}</#if>
Build results: ${link.buildResultsLink}
${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} / ${buildType.name?html}</b> <a href='${link.buildResultsLink}'><@common.short_build_info build/></a> successful
${var.buildShortStatusDescription}
</div>
<div><@resp.buildTypeInvestigation buildType true/></div>
<@common.build_agent build/>
<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,29 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign reporter>
<@resp.reporterDescription responsibility/>
</#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] You are assigned for investigation of ${project.fullName} / ${buildType.name}</#global>
<#global body>You are assigned for investigation of a build configuration failure.
${project.fullName} / ${buildType.name}, assigned by ${reporter}
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.buildTypeConfigLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>You are assigned for investigation of a build configuration failure.</div>
<div><b>${project.fullName?html} / ${buildType.name?html}</b>, assigned by ${reporter?html}</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information at <a href='${link.buildTypeConfigLink}'>build configuration page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,29 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign reporter>
<@resp.reporterDescription responsibility/>
</#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] You are assigned for investigation of ${project.fullName} / ${buildType.name}</#global>
<#global body>You are assigned for investigation of a build configuration failure.
${project.fullName} / ${buildType.name}, assigned by ${reporter}
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.buildTypeConfigLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>You are assigned for investigation of a build configuration failure.</div>
<div><b>${project.fullName?html} / ${buildType.name?html}</b>, assigned by ${reporter?html}</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information at <a href='${link.buildTypeConfigLink}'>build configuration page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,26 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign subj><@resp.subject responsibility '${project.fullName} / ${buildType.name}'/></#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] ${subj}</#global>
<#global body>${subj}.
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.buildTypeConfigLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div><@resp.subject responsibility '${project.fullName?html} / ${buildType.name?html}'/>.</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information at <a href='${link.buildTypeConfigLink}'>build configuration page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,26 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign subj><@resp.subject responsibility '${project.fullName} / ${buildType.name}'/></#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] ${subj}</#global>
<#global body>${subj}.
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.buildTypeConfigLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div><@resp.subject responsibility '${project.fullName?html} / ${buildType.name?html}'/>.</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information at <a href='${link.buildTypeConfigLink}'>build configuration page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,189 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#assign codeStyle>font-family: monospace; font-family: Menlo, Bitstream Vera Sans Mono, Consolas, Courier New, Courier, monospace; font-size: 12px;</#assign>
<#assign failedStyle>color: #c22731;</#assign>
<#assign stacktraceStyle>color: darkred;</#assign>
<#assign separatorStyle>height: 2px; padding: 0; background: #D6D6D6;</#assign>
<#macro subjMarker>TeamCity</#macro>
<#macro plural val><#if (val > 1 || val == 0)>s</#if></#macro>
<#macro build_agent build>
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#if !build.agentLessBuild>
<div>Agent: ${build.agentName?html}</div>
</#if>
</#macro>
<#macro build_comment build>
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#if build.buildComment??>
<div>Build comment: <i>${build.buildComment.comment?html}</i> by ${build.buildComment.user.descriptiveName?html}.</div>
</#if>
</#macro>
<#macro build_changes bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.ChangesBean" -->
<#-- @ftlvariable name="webLinks" type="jetbrains.buildServer.serverSide.WebLinks" -->
<div>
<#assign modNum=bean.modificationsNumber/>
<#if (modNum > 0)>
<div style="${separatorStyle}"></div>
<br/>
<div>
<#assign changesLink><a href='${webLinks.getViewChangesUrl(bean.build)}'>${modNum} change<@plural modNum/></a></#assign>
Changes included: ${changesLink}<#if bean.changesClipped>,
only ${bean.modifications?size} are shown</#if>.
</div>
<#list bean.modifications as mod>
<#assign pers><#if mod.personal>(personal build)</#if></#assign>
<#assign description=mod.description?html/>
<#if description?length == 0><#assign description='&lt;no comment&gt;'/></#if>
<div>
<#assign modLink><a href='${webLinks.getChangeFilesUrl(mod.id, mod.personal)}'>${mod.changes?size} file<@plural mod.changes?size/></a></#assign>
Change ${mod.displayVersion} ${pers} by ${mod.userName} (${modLink}):
<i>${description?replace("(\r?\n|\r)", "<br>", "r")?trim}</i>
</div>
</#list>
</#if>
</div>
</#macro>
<#macro compilation_errors bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.CompilationErrorsBean" -->
<#if bean.hasErrorMessages>
<div>
<br />
<div>Compilation errors</div>
<div style="${separatorStyle}"></div>
<br/>
<#list bean.errorMessages as message>
<code style='${codeStyle} ${stacktraceStyle}'><pre>${message?html}</pre></code>
<br>
</#list>
<#if bean.messagesClipped>
<code style='${codeStyle}'>&lt;&lt; Error message is clipped &gt;&gt;</code>
</#if>
</div>
</#if>
</#macro>
<#macro test_errors bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.FailedTestsErrorsBean" -->
<#if (bean.failedTestCount > 0)>
<div>
<br />
<div>
Failed tests summary:
<span style="${failedStyle}">${bean.failedTestCount}
<#if (bean.newFailedCount > 0)>(${bean.newFailedCount} new)</#if>
</span>
<#if bean.summariesClipped>, ${bean.testsForSummary?size} are shown.
See all on <a href='${link.buildResultsLink}'>build results page</a>.
</#if>
</div>
<table cellspacing="0" cellpadding="5" border="0">
<#list bean.testsForSummary as test>
<#assign detailsLink>
<#if test_index < bean.testDetails?size><a href="#${test.testRunId}" title="Go to stacktrace">details&nbsp;&raquo;</a></#if>
</#assign>
<#if test.test.responsibility??>
<#assign responsibility=test.test.responsibility>
<#assign investigation>
<#if responsibility.state.active><i>investigated by ${responsibility.responsibleUser.descriptiveName?html}</i></#if>
<#if responsibility.state.fixed><i>marked as fixed by ${responsibility.responsibleUser.descriptiveName?html}</i></#if>
<#if responsibility.state.givenUp><i>given up by ${responsibility.responsibleUser.descriptiveName?html}</i></#if>
</#assign>
<#else>
<#assign investigation=''>
</#if>
<tr>
<td style='padding-left: 10px;'>
<code style='${codeStyle}'><#if test.newFailure><b>(new) </b></#if>${test.test.name.asString?html}</code>
</td>
<td style="font-size: 12px">
${investigation}
</td>
<td style="font-size: 12px">
${detailsLink}
</td>
</tr>
</#list>
</table>
<div>
<br />
<div>
<#if (bean.failedTestCount > bean.testDetails?size)>
Stacktraces (only ${bean.testDetails?size} are shown):
<#else>
Stacktraces:
</#if>
</div>
<#list bean.testDetails as details>
<a name="${details.test.testRunId}"/>
<code style='${codeStyle}'><#if details.new><b>(new) </b></#if>${details.testName?html}</code>
<#if details.details??><code style='${codeStyle} ${stacktraceStyle}'><pre>${details.details?html}</pre></code></#if>
<br>
</#list>
</div>
</div>
</#if>
</#macro>
<#macro test_list testNames>
<#-- @ftlvariable name="testNames" type="java.util.List<String>" -->
<#list testNames as testName>
* ${testName}
</#list>
</#macro>
<#macro test_list_html testNames>
<#-- @ftlvariable name="testNames" type="java.util.List<String>" -->
<ul>
<#list testNames as testName>
<li>${testName?html}</li>
</#list>
</ul>
</#macro>
<#macro build_problem_list buildProblems>
<#-- @ftlvariable name="buildProblems" type="java.util.List<String>" -->
<#list buildProblems as buildProblem>
* ${buildProblem?html?replace("(\r?\n|\r)", "<br>", "r")?trim}
</#list>
</#macro>
<#macro build_problem_list_html buildProblems>
<#-- @ftlvariable name="buildProblems" type="java.util.List<String>" -->
<ul>
<#list buildProblems as buildProblem>
<li>${buildProblem?html?replace("(\r?\n|\r)", "<br>", "r")?trim}</li>
</#list>
</ul>
</#macro>
<#macro footer>
<#if notificationType??>
============================================================================
Configure email notifications: ${link.editBuildTypeNotificationsLink}
<#else>
============================================================================
Configure email notifications: ${link.editNotificationsLink}
</#if>
</#macro>
<#macro footerHtml>
<div style='color: #666666; font-size:85%'>
<br/>
<div style="${separatorStyle}"></div>
<br/>
<#if notificationType??>
<a href='${link.editBuildTypeNotificationsLink}'>Configure</a> email notifications for this build configuration
<#else>
<a href='${link.editNotificationsLink}'>Configure</a> your email notifications on your settings page.
</#if>
</div>
</#macro>
<#macro short_build_info build><#if build.branch??>[${build.branch.displayName}] </#if>#${build.buildNumber}</#macro>

View File

@ -0,0 +1,189 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#assign codeStyle>font-family: monospace; font-family: Menlo, Bitstream Vera Sans Mono, Consolas, Courier New, Courier, monospace; font-size: 12px;</#assign>
<#assign failedStyle>color: #c22731;</#assign>
<#assign stacktraceStyle>color: darkred;</#assign>
<#assign separatorStyle>height: 2px; padding: 0; background: #D6D6D6;</#assign>
<#macro subjMarker>TeamCity</#macro>
<#macro plural val><#if (val > 1 || val == 0)>s</#if></#macro>
<#macro build_agent build>
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#if !build.agentLessBuild>
<div>Agent: ${build.agentName?html}</div>
</#if>
</#macro>
<#macro build_comment build>
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#if build.buildComment??>
<div>Build comment: <i>${build.buildComment.comment?html}</i> by ${build.buildComment.user.descriptiveName?html}.</div>
</#if>
</#macro>
<#macro build_changes bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.ChangesBean" -->
<#-- @ftlvariable name="webLinks" type="jetbrains.buildServer.serverSide.WebLinks" -->
<div>
<#assign modNum=bean.modificationsNumber/>
<#if (modNum > 0)>
<div style="${separatorStyle}"></div>
<br/>
<div>
<#assign changesLink><a href='${webLinks.getViewChangesUrl(bean.build)}'>${modNum} change<@plural modNum/></a></#assign>
Changes included: ${changesLink}<#if bean.changesClipped>,
only ${bean.modifications?size} are shown</#if>.
</div>
<#list bean.modifications as mod>
<#assign pers><#if mod.personal>(personal build)</#if></#assign>
<#assign description=mod.description?html/>
<#if description?length == 0><#assign description='&lt;no comment&gt;'/></#if>
<div>
<#assign modLink><a href='${webLinks.getChangeFilesUrl(mod.id, mod.personal)}'>${mod.changes?size} file<@plural mod.changes?size/></a></#assign>
Change ${mod.displayVersion} ${pers} by ${mod.userName} (${modLink}):
<i>${description?replace("(\r?\n|\r)", "<br>", "r")?trim}</i>
</div>
</#list>
</#if>
</div>
</#macro>
<#macro compilation_errors bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.CompilationErrorsBean" -->
<#if bean.hasErrorMessages>
<div>
<br />
<div>Compilation errors</div>
<div style="${separatorStyle}"></div>
<br/>
<#list bean.errorMessages as message>
<code style='${codeStyle} ${stacktraceStyle}'><pre>${message?html}</pre></code>
<br>
</#list>
<#if bean.messagesClipped>
<code style='${codeStyle}'>&lt;&lt; Error message is clipped &gt;&gt;</code>
</#if>
</div>
</#if>
</#macro>
<#macro test_errors bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.FailedTestsErrorsBean" -->
<#if (bean.failedTestCount > 0)>
<div>
<br />
<div>
Failed tests summary:
<span style="${failedStyle}">${bean.failedTestCount}
<#if (bean.newFailedCount > 0)>(${bean.newFailedCount} new)</#if>
</span>
<#if bean.summariesClipped>, ${bean.testsForSummary?size} are shown.
See all on <a href='${link.buildResultsLink}'>build results page</a>.
</#if>
</div>
<table cellspacing="0" cellpadding="5" border="0">
<#list bean.testsForSummary as test>
<#assign detailsLink>
<#if test_index < bean.testDetails?size><a href="#${test.testRunId}" title="Go to stacktrace">details&nbsp;&raquo;</a></#if>
</#assign>
<#if test.test.responsibility??>
<#assign responsibility=test.test.responsibility>
<#assign investigation>
<#if responsibility.state.active><i>investigated by ${responsibility.responsibleUser.descriptiveName?html}</i></#if>
<#if responsibility.state.fixed><i>marked as fixed by ${responsibility.responsibleUser.descriptiveName?html}</i></#if>
<#if responsibility.state.givenUp><i>given up by ${responsibility.responsibleUser.descriptiveName?html}</i></#if>
</#assign>
<#else>
<#assign investigation=''>
</#if>
<tr>
<td style='padding-left: 10px;'>
<code style='${codeStyle}'><#if test.newFailure><b>(new) </b></#if>${test.test.name.asString?html}</code>
</td>
<td style="font-size: 12px">
${investigation}
</td>
<td style="font-size: 12px">
${detailsLink}
</td>
</tr>
</#list>
</table>
<div>
<br />
<div>
<#if (bean.failedTestCount > bean.testDetails?size)>
Stacktraces (only ${bean.testDetails?size} are shown):
<#else>
Stacktraces:
</#if>
</div>
<#list bean.testDetails as details>
<a name="${details.test.testRunId}"/>
<code style='${codeStyle}'><#if details.new><b>(new) </b></#if>${details.testName?html}</code>
<#if details.details??><code style='${codeStyle} ${stacktraceStyle}'><pre>${details.details?html}</pre></code></#if>
<br>
</#list>
</div>
</div>
</#if>
</#macro>
<#macro test_list testNames>
<#-- @ftlvariable name="testNames" type="java.util.List<String>" -->
<#list testNames as testName>
* ${testName}
</#list>
</#macro>
<#macro test_list_html testNames>
<#-- @ftlvariable name="testNames" type="java.util.List<String>" -->
<ul>
<#list testNames as testName>
<li>${testName?html}</li>
</#list>
</ul>
</#macro>
<#macro build_problem_list buildProblems>
<#-- @ftlvariable name="buildProblems" type="java.util.List<String>" -->
<#list buildProblems as buildProblem>
* ${buildProblem?html?replace("(\r?\n|\r)", "<br>", "r")?trim}
</#list>
</#macro>
<#macro build_problem_list_html buildProblems>
<#-- @ftlvariable name="buildProblems" type="java.util.List<String>" -->
<ul>
<#list buildProblems as buildProblem>
<li>${buildProblem?html?replace("(\r?\n|\r)", "<br>", "r")?trim}</li>
</#list>
</ul>
</#macro>
<#macro footer>
<#if notificationType??>
============================================================================
Configure email notifications: ${link.editBuildTypeNotificationsLink}
<#else>
============================================================================
Configure email notifications: ${link.editNotificationsLink}
</#if>
</#macro>
<#macro footerHtml>
<div style='color: #666666; font-size:85%'>
<br/>
<div style="${separatorStyle}"></div>
<br/>
<#if notificationType??>
<a href='${link.editBuildTypeNotificationsLink}'>Configure</a> email notifications for this build configuration
<#else>
<a href='${link.editNotificationsLink}'>Configure</a> your email notifications on your settings page.
</#if>
</div>
</#macro>
<#macro short_build_info build><#if build.branch??>[${build.branch.displayName}] </#if>#${build.buildNumber}</#macro>

View File

@ -0,0 +1,8 @@
<!ELEMENT email EMPTY>
<!ATTLIST email
email-server CDATA #REQUIRED
email-server-port NMTOKEN #IMPLIED
email-login CDATA #IMPLIED
email-password CDATA #IMPLIED
securityMode CDATA #IMPLIED
>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE email SYSTEM "email-config.dtd">
<email email-server="mail" email-server-port="25" email-from="TeamCity"/>

View File

@ -0,0 +1,23 @@
<#-- @ftlvariable name="verifyUrl" type="java.lang.String" -->
<#-- @ftlvariable name="user" type="jetbrains.buildServer.users.SUser" -->
<#global subject>Verify your email address for TeamCity</#global>
<#global body>
Hi ${user.descriptiveName},
Email address verification procedure for user '${user.username}' has been started on ${serverUrl}.
Confirm email ${emailAddress} and complete the verification procedure using the link ${verifyUrl}
</#global>
<#global bodyHtml>
<div style="padding: 5px 5px; font-size: 14px; line-height: 20px">
<p>Hi ${user.descriptiveName},</p>
<p>
Email address verification procedure for user '${user.username}' has been started on <a href="${serverUrl}">${serverUrl}</a>.<br/>
Click the link below to confirm email ${emailAddress} and complete the verification procedure:
</p>
<p><a href="${verifyUrl}">Confirm Email Address</a></p>
</div>
</#global>

View File

@ -0,0 +1,23 @@
<#-- @ftlvariable name="verifyUrl" type="java.lang.String" -->
<#-- @ftlvariable name="user" type="jetbrains.buildServer.users.SUser" -->
<#global subject>Verify your email address for TeamCity</#global>
<#global body>
Hi ${user.descriptiveName},
Email address verification procedure for user '${user.username}' has been started on ${serverUrl}.
Confirm email ${emailAddress} and complete the verification procedure using the link ${verifyUrl}
</#global>
<#global bodyHtml>
<div style="padding: 5px 5px; font-size: 14px; line-height: 20px">
<p>Hi ${user.descriptiveName},</p>
<p>
Email address verification procedure for user '${user.username}' has been started on <a href="${serverUrl}">${serverUrl}</a>.<br/>
Click the link below to confirm email ${emailAddress} and complete the verification procedure:
</p>
<p><a href="${verifyUrl}">Confirm Email Address</a></p>
</div>
</#global>

View File

@ -0,0 +1,21 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#global subject>[<@common.subjMarker/>, LABELING FAILED] ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Labeling failed for root '${vcsRoot.name}'.
Build results: ${link.buildResultsLink}
${var.labelingFailureStacktrace}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>Labeling failed for root <b>'${vcsRoot.name?html}'</b>.</div>
<div>More details on <a href='${link.buildResultsLink}'>build results page</a></div>
<br>
<code style='${common.codeStyle} ${common.stacktraceStyle}'>${var.labelingFailureStacktrace}</code>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,21 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#global subject>[<@common.subjMarker/>, LABELING FAILED] ${project.fullName} / ${buildType.name} <@common.short_build_info build/></#global>
<#global body>Labeling failed for root '${vcsRoot.name}'.
Build results: ${link.buildResultsLink}
${var.labelingFailureStacktrace}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>Labeling failed for root <b>'${vcsRoot.name?html}'</b>.</div>
<div>More details on <a href='${link.buildResultsLink}'>build results page</a></div>
<br>
<code style='${common.codeStyle} ${common.stacktraceStyle}'>${var.labelingFailureStacktrace}</code>
<@common.footerHtml/>
</div>
</#global>

View File

@ -0,0 +1,32 @@
<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>
<#assign reporter>
<@resp.reporterDescription responsibility/>
</#assign>
<#global subject>[<@common.subjMarker/>, INVESTIGATION] You are assigned for investigation of tests failure</#global>
<#global body>You are assigned for investigation of tests failure (${project.fullName}):
<@common.test_list testNames/>
Assigned by ${reporter}
<@resp.removeMethod responsibility/>
<@resp.comment responsibility/>
${link.myResponsibilitiesLink}
<@common.footer/></#global>
<#global bodyHtml>
<div>
<div>You are assigned for investigation of tests failure (${project.fullName?html}):</div>
<@common.test_list_html testNames/>
<div>Assigned by ${reporter?html}.</div>
<div><@resp.removeMethod responsibility/></div>
<div><@resp.comment responsibility/></div>
<br>
<div>More information on <a href='${link.myResponsibilitiesLink}'>investigations page</a>.</div>
<@common.footerHtml/>
</div>
</#global>

Some files were not shown because too many files have changed in this diff Show More