Package org.apache.logging.log4j.core.appender.rolling

Examples of org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager


     *
     * @param event The LogEvent.
     */
    @Override
    public void append(final LogEvent event) {
        FastRollingFileManager manager = (FastRollingFileManager) getManager();
        manager.checkRollover(event);

        // Leverage the nice batching behaviour of async Loggers/Appenders:
        // we can signal the file manager that it needs to flush the buffer
        // to disk at the end of a batch.
        // From a user's point of view, this means that all log events are
        // _always_ available in the log file, without incurring the overhead
        // of immediateFlush=true.
        manager.setEndOfBatch(event.isEndOfBatch());
        super.append(event);
    }
View Full Code Here


            Layout<S> l = (Layout<S>)PatternLayout.createLayout(null, null, null, null, null);
            layout = l;
        }


        final FastRollingFileManager manager = FastRollingFileManager.getFastRollingFileManager(fileName, filePattern,
            isAppend, isFlush, policy, strategy, advertiseURI, layout);
        if (manager == null) {
            return null;
        }
View Full Code Here

     *
     * @param event The LogEvent.
     */
    @Override
    public void append(final LogEvent event) {
        FastRollingFileManager manager = (FastRollingFileManager) getManager();
        manager.checkRollover(event);

        // Leverage the nice batching behaviour of async Loggers/Appenders:
        // we can signal the file manager that it needs to flush the buffer
        // to disk at the end of a batch.
        // From a user's point of view, this means that all log events are
        // _always_ available in the log file, without incurring the overhead
        // of immediateFlush=true.
        manager.setEndOfBatch(event.isEndOfBatch());
        super.append(event);
    }
View Full Code Here

        if (strategy == null) {
            strategy = DefaultRolloverStrategy.createStrategy(null, null,
                    "true", config);
        }

        final FastRollingFileManager manager = FastRollingFileManager
                .getFastRollingFileManager(fileName, filePattern, isAppend,
                        isFlush, policy, strategy, advertiseURI);
        if (manager == null) {
            return null;
        }
View Full Code Here

     *
     * @param event The LogEvent.
     */
    @Override
    public void append(final LogEvent event) {
        FastRollingFileManager manager = (FastRollingFileManager) getManager();
        manager.checkRollover(event);

        // Leverage the nice batching behaviour of async Loggers/Appenders:
        // we can signal the file manager that it needs to flush the buffer
        // to disk at the end of a batch.
        // From a user's point of view, this means that all log events are
        // _always_ available in the log file, without incurring the overhead
        // of immediateFlush=true.
        manager.setEndOfBatch(event.isEndOfBatch());
        super.append(event);
    }
View Full Code Here

        if (strategy == null) {
            strategy = DefaultRolloverStrategy.createStrategy(null, null,
                    "true", config);
        }

        final FastRollingFileManager manager = FastRollingFileManager
                .getFastRollingFileManager(fileName, filePattern, isAppend,
                        isFlush, policy, strategy, advertiseURI);
        if (manager == null) {
            return null;
        }
View Full Code Here

     *
     * @param event The LogEvent.
     */
    @Override
    public void append(final LogEvent event) {
        final FastRollingFileManager manager = (FastRollingFileManager) getManager();
        manager.checkRollover(event);

        // Leverage the nice batching behaviour of async Loggers/Appenders:
        // we can signal the file manager that it needs to flush the buffer
        // to disk at the end of a batch.
        // From a user's point of view, this means that all log events are
        // _always_ available in the log file, without incurring the overhead
        // of immediateFlush=true.
        manager.setEndOfBatch(event.isEndOfBatch());
        super.append(event);
    }
View Full Code Here

            Layout<S> l = (Layout<S>) PatternLayout.createLayout(null, null, null, null, null);
            layout = l;
        }


        final FastRollingFileManager manager = FastRollingFileManager.getFastRollingFileManager(fileName, filePattern,
            isAppend, isFlush, policy, strategy, advertiseURI, layout);
        if (manager == null) {
            return null;
        }
View Full Code Here

TOP

Related Classes of org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.