juliansoares
(usa Debian)
Enviado em 22/04/2013 - 17:12h
filippec escreveu:
procura nos arquivos do sonar algum arquivo log4j.properties.
Se achar procura por algo log facility.
tipo eu nao estou rodando o sonar sozinho, roda junto com o tomcat, então o log com debug fica no apache-tomcat ou na pasta sonar?
tem isso no sonar : /opt/sonar-2.6/conf/logback.xml
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="true">
<!-- appender used when deploying Sonar WAR on a JEE server -->
<appender name="SONAR_WAR" class="ch.qos.logback.core.ConsoleAppender">
<!-- avoid to log 404 file not found messages from the rails file servlet -->
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
<evaluator name="mavenRepoFileNotFound">
<expression>message.startsWith("files: File not found: /maven")</expression>
</evaluator>
<OnMismatch>NEUTRAL</OnMismatch>
<OnMatch>DENY</OnMatch>
</filter>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>
%d{yyyy.MM.dd HH:mm:ss} %-5level %logger{20} %X %msg%n
</pattern>
</layout>
</appender>
<!-- SONAR_STANDALONE/ -->
<!-- do not edit/remove the previous comment -->
<appender name="SONAR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>../../logs/sonar.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<param name="FileNamePattern" value="../../logs/sonar.%i.log"/>
<param name="MinIndex" value="1"/>
<param name="MaxIndex" value="3"/>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<param name="MaxFileSize" value="5MB"/>
</triggeringPolicy>
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
<evaluator name="mavenRepoFileNotFound">
<expression>message.startsWith("files: File not found: /maven")</expression>
</evaluator>
<OnMismatch>NEUTRAL</OnMismatch>
<OnMatch>DENY</OnMatch>
</filter>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>
%d{yyyy.MM.dd HH:mm:ss} %-5level %logger{20} %X %msg%n
</pattern>
</layout>
</appender>
<!-- appender used to profile Sonar Server -->
<appender name="PROFILING_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>../../logs/profiling.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<param name="FileNamePattern" value="../../logs/profiling.%i.log"/>
<param name="MinIndex" value="1"/>
<param name="MaxIndex" value="3"/>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<param name="MaxFileSize" value="5MB"/>
</triggeringPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>
%d{yyyy.MM.dd HH:mm:ss} %-5level %logger{20} %X %msg%n
</pattern>
</layout>
</appender>
<!-- do not edit/remove the following comment -->
<!-- /SONAR_STANDALONE -->
<!--
Profiling of JRuby on Rails requests . Uncomment in order to log HTTP and SQL requests.
Execute the following command to get the HTTP requests with execution time > 10s :
grep 'rails Completed in [0-9]\{5,\}ms' < profiling.log
-->
<!--
<logger name="rails" additivity="false">
<level value="DEBUG"/>
<appender-ref ref="PROFILING_FILE"/>
</logger>
-->
<logger name="org.hibernate.cache.ReadWriteCache">
<!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
<level value="ERROR"/>
</logger>
<logger name="org.hibernate.cache.EhCacheProvider">
<!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuration)" message -->
<level value="ERROR"/>
</logger>
<!-- set DEBUG to activate Hibernate SQL logs. NOT RECOMMENDED -->
<logger name="org.hibernate.SQL">
<level value="ERROR"/>
</logger>
<!-- set INFO to activate Hibernate SQL statistics. NOT RECOMMENDED -->
<logger name="org.sonar.DBSTATISTICS">
<level value="ERROR"/>
</logger>
<logger name="org.sonar.INFO">
<level value="INFO"/>
</logger>
<logger name="org.sonar.plugins.core.i18n.I18nManager">
<level value="INFO"/>
</logger>
<root>
<level value="WARN"/>
<appender-ref ref="SONAR_FILE"/>
</root>
</configuration>