1

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?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
Saurabh kukade
  • 1,608
  • 12
  • 23

1 Answers1

1

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>
Ori Marko
  • 56,308
  • 23
  • 131
  • 233