Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Table of Contents

서버 사이드의 로깅 설정은 $SONARQUBE_HOME/conf/sonar.properties 파일의 속성값으로 설정합니다.

1개의 SonarQube 프로세스 당 4개의 로그 파일을 생성합니다.

로그 레벨

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

  • INFO (기본)
  • DEBUG - 상세 로그
  • TRACE - 상세 로그 및 모든 SQL / Elasticsearch 요청을 표시합니다. TRACE 레벨의 로깅은 서버의 속도를 저하시킬 수 있으므로, 웹 요청 성능에 문제가 있는 경우에만 사용할 것을 권장합니다.

프로세스 로그 레벨

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

  • sonar.log.level.app: SonarQube의 메인 프로세스 (즉, WrapperSimpleApp입니다 이 앱은 다른 3개의 프로세스를 시작시킵니다)
  • sonar.log.level.web: WebServer  프로세스
  • sonar.log.level.ce: ComputeEnginerServer 프로세스
  • sonar.log.level.es: SearchServer 프로세스

로그 순환Log Rotation

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

  • time:[value] - 시간 기반으로 순환합니다. 예를 들어, time:yyyy-MM-dd는 일 단위 순환 time:yyyy-MM은 월 단위 순환을 의미합니다.
  • size:[value] - 용량 기반으로 순환합니다. 예를 들어, size:10MB와 같이 설정할 수 있습니다.
  • none - 로그를 순환하지 않습니다. 외부 시스테에 의해 로그를 관리하는 경우 주로 사용합니다.

sonar.log.maxFiles is the maximum number of files to keep. This property is ignored if sonar.log.rollingPolicy=none.

기타 로그

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.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.