Java 类org.apache.logging.log4j.core.appender.OutputStreamManager 实例源码

项目:stochdiff    文件:CustomFileAppender.java   
public static void addFileAppender(String filename) {
    if (instance == null) {
        LOGGER.error("CustomFileAppender hasn't been initalized, ignoring output "
                     + filename);
        return;
    }

    final AbstractOutputStreamAppender<? extends OutputStreamManager> appender;
    if (mmap_appender)
        appender = MemoryMappedFileAppender.createAppender(filename,
                                                           "false", filename,
                                                           "false", "8192", "false",
                                                           instance.getLayout(),
                                                           instance.getFilter(),
                                                           "false", "false",
                                                           new DefaultConfiguration());
    else
        appender = FileAppender.createAppender(filename,
                                               "false", "false",
                                               filename,
                                               "false", "false",
                                               "true", "8192",
                                               instance.getLayout(),
                                               instance.getFilter(),
                                               "false", "false",
                                               new DefaultConfiguration());

    LOGGER.info("registering custom logfile '{}'", appender);
    instance.appenders.add(appender);
}
项目:jamocha    文件:OutstreamAppender.java   
private OutstreamAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
        final OutputStreamManager manager, final boolean ignoreExceptions) {
    super(name, layout, filter, ignoreExceptions, true, manager);
}
项目:jamocha    文件:OutstreamAppender.java   
private static OutputStreamManager getManager(final boolean follow, final String name,
        final OutputStream outputStream, final Layout<? extends Serializable> layout) {
    return OutputStreamManager
            .getManager(name + '.' + follow, new FactoryData(outputStream, name, layout), factory);
}
项目:jline-log4j2-appender    文件:JLineConsoleAppender.java   
protected JLineConsoleAppender(String name, Layout<? extends Serializable> layout, Filter filter, HookableOutputStreamManager manager, OutputStreamManager held, boolean ignoreExceptions) {
    super(name, layout, filter, ignoreExceptions, true, manager);
    this.manager = manager;
    this.held = held;
}
项目:jline-log4j2-appender    文件:JLineConsoleAppender.java   
protected static OutputStreamManager getHeldManager(boolean follow, Target target, FactoryData data) {
    return OutputStreamManager.getManager(target.name() + "." + follow, data, FACTORY);
}
项目:log4j2    文件:TCPSocketManager.java   
public Reconnector(final OutputStreamManager owner) {
    this.owner = owner;
}
项目:logging-log4j2    文件:TcpSocketManager.java   
public Reconnector(final OutputStreamManager owner) {
    super("TcpSocketManager-Reconnector");
    this.owner = owner;
}