kdgregory / log4j-aws-appenders

Appenders for Log4J 1.2.x, Log4J 2.x, and Logback that write to AWS destinations.
Apache License 2.0
67 stars 18 forks source link

move initialization timeout into logwriter (fixes #167) #173

Closed kdgregory closed 1 year ago

kdgregory commented 1 year ago

The appenders had a pointless wait for the logwriter to start: it would wait for up to 60 seconds, report an error, but not actually affect the appender operation. The logwriters themselves used a variety of hardcoded timeouts that ultimately did not affect writer operation.

Removed the appender-level wait, and changed logwriter initialization to use a configurable timeout. If this timeout is exceeded, the logwriter shuts down.