Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
borderColor#C3CCD7
bgColor#FCFCFC

Table of Contents

Table of Contents
indent16px


Server-side logging is controlled by properties set in 서버 사이드의 로깅 설정은 $SONARQUBE_HOME/conf/sonar.properties 파일의 속성값으로 설정합니다.

4 logs files are created : one per SonarQube process.

Log Level

The server-side log level can be customized via the 1개의 SonarQube 프로세스 당 4개의 로그 파일을 생성합니다.

로그 레벨

서버 사이드 로그 레벨은 sonar.log.level property. Supported values are 속성값으로 설정할 수 있습니다. 다음 속성값을 사용할 수 있습니다:

  • INFO (default기본)
  • DEBUG - for advanced logs.상세 로그
  • TRACE - show advanced logs and all SQL and Elasticsearch requests. TRACE level logging slows down the server environment, and should be used only for tracking web request performance problems.

Log Level by Process

The server-side log level can be adjusted more precisely for the 4 processes of SonarQube Server via the following property
  • 상세 로그 및 모든 SQL / Elasticsearch 요청을 표시합니다. TRACE 레벨의 로깅은 서버의 속도를 저하시킬 수 있으므로, 웹 요청 성능에 문제가 있는 경우에만 사용할 것을 권장합니다.

프로세스 로그 레벨

SonarQube 서버의 4개 프로세스에 대한 로그 레벨은 다음 속성값으로 설정할 수 있습니다:

  • sonar.log.level.app: for the Main process of SonarQube (aka WrapperSimpleApp, the bootstrapper process starting the 3 others) SonarQube의 메인 프로세스 (즉, WrapperSimpleApp입니다 이 앱은 다른 3개의 프로세스를 시작시킵니다)
  • sonar.log.level.web: for the WebServerWebServer  프로세스
  • sonar.log.level.ce: for the ComputeEngineServerComputeEnginerServer 프로세스
  • sonar.log.level.es: for the SearchServer 프로세스

Log Rotation

To control log rolling, use the 

로그 로테이션

로그 순환은  sonar.log.rollingPolicy 속성값으로 설정할 수 있습니다.

  • time:[value] - for time-based rotation. For example, use 시간 기반으로 순환합니다. 예를 들어, time:yyyy-MM-dd for daily rotation, and dd는 일 단위 순환 time:yyyy-MM for monthly rotationMM은 월 단위 순환을 의미합니다.
  • size:[value] - for size-based rotation. For example, size:10MB용량 기반으로 순환합니다. 예를 들어, size:10MB와 같이 설정할 수 있습니다.
  • none - for no rotation. Typically this would be used when logs are handled by an external system like logrotate로그를 순환하지 않습니다. 외부 시스테에 의해 로그를 관리하는 경우 주로 사용합니다.

sonar.log.maxFiles is the maximum number of files to keep. This property is ignored if 은 보존할 파일의 최대 수를 의미합니다. sonar.log.rollingPolicy=none.

Other Logs

In addition to the log files created in $SONARQUBE_HOME/logs, background task logs are created in the $SONARQUBE_HOME/data/ce/logs directory. One subdirectory will be created for each project, developer, and view in the instance. These subdirectories will be organized by type (for instance data/ce/logs/PROJECT/...). Each directory will contain up to 10 log files (this is configurable in Administration > General > General), and with default logging settings the log files are typically no larger than 10kb. Other logs may be created as well으로 설정한 경우 이 속성은 무시됩니다.