ApexUnit icon indicating copy to clipboard operation
ApexUnit copied to clipboard

Log level to DEBUG

Open kemuning opened this issue 7 years ago • 2 comments

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 avatar Mar 19 '18 17:03 kemuning

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 ?

kemuning avatar Mar 20 '18 08:03 kemuning

Hi,

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

damiendurant avatar Jul 26 '18 14:07 damiendurant