Examples of FileHandler


Examples of org.jboss.logmanager.handlers.FileHandler

        return level;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

        return formatterSpec;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

        return autoflush;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

    public synchronized String getEncoding() {
        return encoding;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

        return append;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

    private String encoding;
    private boolean append;
    private FileHandler value;

    public synchronized void start(final StartContext context) throws StartException {
        final FileHandler handler = new FileHandler();
        value = handler;
        if (filter != null) handler.setFilter(filter);
        formatterSpec.apply(handler);
        if (level != null) handler.setLevel(level);
        handler.setAutoFlush(autoflush);
        try {
            handler.setEncoding(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new StartException(e);
        }
        handler.setAppend(append);
        try {
            handler.setFileName(fileName.getValue());
        } catch (FileNotFoundException e) {
            throw new StartException(e);
        }
        value = handler;
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.FileHandler

        }
        value = handler;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

        return level;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

        return formatterSpec;
    }

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

Examples of org.jboss.logmanager.handlers.FileHandler

    }

    @Override
    public synchronized void setFilter(final Filter filter) {
        this.filter = filter;
        final FileHandler handler = value;
        if (handler != null) {
            handler.setFilter(filter);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.