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.
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.
<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.
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.