Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Log level to DEBUG #70

Open
kemuning opened this issue Mar 19, 2018 · 2 comments
Open

Log level to DEBUG #70

kemuning opened this issue Mar 19, 2018 · 2 comments

Comments

@kemuning
Copy link

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
Copy link
Author

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
Copy link
Contributor

Hi,

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants