How to create my own Appender in log4j?
Update: the provided solution is valid for Log4J 1.x . If you’re looking for 2.x versions, take a look at this article: How to create a custom appender in log4j2 You should extend AppenderSkeleton class, that (quoting javadoc) “provides the code for common functionality, such as support for threshold filtering and support for general filters.” … Read more