aliyun / aliyun-log-log4j-appender

aliyun-log-log4j-appender
Apache License 2.0
63 stars 32 forks source link

Bugfix/flush issue and debug issue #1

Closed brucewu-fly closed 6 years ago

brucewu-fly commented 6 years ago
  1. In order to keep consistent with logback-appender and log4j2-appender, I modified pom.xml. Change log-loghub-producer's version from 0.1.4 to 0.1.8. Add protobuf 2.5.0 to pom.xml.
  2. Rename parameter ioThreadsCount to maxIOThreadSizeInPool in order to keep consistent with log-loghub-producer.
  3. Fixed flush issue through addShutdownHook.
  4. Add a new class LoghubAppenderCallback, it will record the error message in org.apache.log4j.helpers.LogLog.
  5. Add some unit tests.