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); }
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); }
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); }
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; }
protected static OutputStreamManager getHeldManager(boolean follow, Target target, FactoryData data) { return OutputStreamManager.getManager(target.name() + "." + follow, data, FACTORY); }
public Reconnector(final OutputStreamManager owner) { this.owner = owner; }
public Reconnector(final OutputStreamManager owner) { super("TcpSocketManager-Reconnector"); this.owner = owner; }