3

I'm running on Ubuntu 16.04 & Java 8. kcl generate thousands of INFO log lines. Does any one know how to enable only ERROR and WARN logs?

*I have also the same question for kpl.


I don't have a logfile.

Stav Alfi
  • 13,139
  • 23
  • 99
  • 171

2 Answers2

2
<configuration>
    .........

    <logger name="com.amazonaws.services.kinesis.producer" level="warn"/>
    <logger name="com.amazonaws.services.kinesis.clientlibrary" level="warn"/>

    .........
</configuration>

Log levels: https://www.slf4j.org/api/org/apache/commons/logging/Log.html. You can also define a prefix of packages.

Cloud
  • 983
  • 11
  • 11
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
0

If you are using the V2 AWS SDK/KCL libraries, consider the following.

Put this in your logging config file:

<logger name="software.amazon.kinesis" level="INFO"/>
<logger name="io.netty.handler" level="INFO"/>

or use this to reduce the full AWS SDK debug logs:

<logger name="software.amazon" level="INFO"/>
<logger name="io.netty.handler" level="INFO"/>

Either way, this will reduce the output significantly.

Sagan
  • 2,033
  • 2
  • 14
  • 12