forcedotcom / ApexUnit

ApexUnit is a powerful continuous integration tool for the Force.com platform
BSD 3-Clause "New" or "Revised" License
71 stars 51 forks source link

Log level to DEBUG #70

Open kemuning opened 6 years ago

kemuning commented 6 years ago

I changed the the log level to "debug" on the logback.xml :

<logger name="com.sforce.cd.apexUnit" level="debug" />
<root level="debug">
    <appender-ref ref="STDOUT" />
</root>

but nothing happen on the console when I run the mvn compile ... All I see is just the INFO.

Any idea ?

kemuning commented 6 years ago

This is weird ... even if I remove the logback.xml from src/main/resources, I still can't see the debug log on the console.

According to logback manual :

Assuming the configuration files logback-test.xml or logback.xml are not present, logback will default to 
invoking BasicConfigurator which will set up a minimal configuration. This minimal configuration consists 
of a ConsoleAppender attached to the root logger. The output is formatted using a 
PatternLayoutEncoder set to the pattern %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n. 

Moreover, by default the root logger is assigned the DEBUG level. 

Any help please ?

damiendurant commented 6 years ago

Hi,

Debug logs work when you launch mvn with debug option (-X)