Reputation: 1636
I am passing java command line option in Jenkins build configuration in Goals and
Options as -Dorg.slf4j.simpleLogger.defaultLogLevel=warn
But somehow jenkins is ignoring it and I am getting log levels at INFO. How do I fix this?
Upvotes: 1
Views: 207
Reputation: 58892
You are sending a default level, that Jenkins accepts, but if you define specific implementation properties,as inside log4j.xml, it will override default and save logs per definition. for example:
<root>
<level value="INFO" />
<appender-ref ref="console" />
</root>
Upvotes: 1