Package org.jboss.logmanager.handlers

Examples of org.jboss.logmanager.handlers.SizeRotatingFileHandler


        handler.setMaxBackupIndex(maxBackupIndex);
        handler.setRotateSize(rotateSize);
    }

    public synchronized void stop(final StopContext context) {
        final SizeRotatingFileHandler handler = value;
        handler.close();
        value = null;
    }
View Full Code Here


        return level;
    }

    public synchronized void setLevel(final Level level) {
        this.level = level;
        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setLevel(level);
    }
View Full Code Here

        return formatterSpec;
    }

    public synchronized void setFormatterSpec(final AbstractFormatterSpec formatterSpec) {
        this.formatterSpec = formatterSpec;
        final SizeRotatingFileHandler handler = value;
        if (handler != null) formatterSpec.apply(handler);
    }
View Full Code Here

        return autoflush;
    }

    public synchronized void setAutoflush(final boolean autoflush) {
        this.autoflush = autoflush;
        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setAutoFlush(autoflush);
    }
View Full Code Here

    public synchronized String getEncoding() {
        return encoding;
    }

    public synchronized void setEncoding(final String encoding) throws UnsupportedEncodingException {
        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setEncoding(encoding);
        this.encoding = encoding;
    }
View Full Code Here

        return append;
    }

    public synchronized void setAppend(final boolean append) {
        this.append = append;
        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setAppend(append);
    }
View Full Code Here

        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setAppend(append);
    }

    private void setFileName() throws FileNotFoundException {
        final SizeRotatingFileHandler handler = value;
        if (handler == null) {
            return;
        }
        final String value = relativeTo.getOptionalValue();
        final String fileName = value != null ? value + "/" + path : path;
        handler.setFileName(fileName);
    }
View Full Code Here

        return maxBackupIndex;
    }

    public synchronized void setMaxBackupIndex(final int maxBackupIndex) {
        this.maxBackupIndex = maxBackupIndex;
        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setMaxBackupIndex(maxBackupIndex);
    }
View Full Code Here

        return rotateSize;
    }

    public synchronized void setRotateSize(final long rotateSize) {
        this.rotateSize = rotateSize;
        final SizeRotatingFileHandler handler = value;
        if (handler != null) handler.setRotateSize(rotateSize);
    }
View Full Code Here

    private int maxBackupIndex;
    private long rotateSize;

    @Override
    protected SizeRotatingFileHandler createHandler() throws StartException {
        return new SizeRotatingFileHandler();
    }
View Full Code Here

TOP

Related Classes of org.jboss.logmanager.handlers.SizeRotatingFileHandler

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.