org.apache.logging.log4j.io

Class LoggerWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable


    public class LoggerWriter
    extends Writer
    Logs each line written to a pre-defined level. Can also be configured with a Marker. This class provides an interface that follows the Writer methods in spirit, but doesn't require output to any external writer.
    Since:
    2.1

Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.