Java 类org.apache.logging.log4j.core.net.Advertiser 实例源码

项目:log4j2    文件:RollingRandomAccessFileAppender.java   
private RollingRandomAccessFileAppender(final String name, final Layout<? extends Serializable> layout,
        final Filter filter, final RollingFileManager manager, final String fileName,
        final String filePattern, final boolean ignoreExceptions,
        final boolean immediateFlush, final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<String, String>(
                layout.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = fileName;
    this.filePattern = filePattern;
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:AbstractFileAppender.java   
private AbstractFileAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
        final M manager, final String filename, final boolean ignoreExceptions,
        final boolean immediateFlush, final Advertiser advertiser) {

    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    } else {
        advertisement = null;
    }
    this.fileName = filename;
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:RollingRandomAccessFileAppender.java   
private RollingRandomAccessFileAppender(final String name, final Layout<? extends Serializable> layout,
        final Filter filter, final RollingRandomAccessFileManager manager, final String fileName,
        final String filePattern, final boolean ignoreExceptions,
        final boolean immediateFlush, final int bufferSize, final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    } else {
        advertisement = null;
    }
    this.fileName = fileName;
    this.filePattern = filePattern;
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:RandomAccessFileAppender.java   
private RandomAccessFileAppender(final String name, final Layout<? extends Serializable> layout,
        final Filter filter, final RandomAccessFileManager manager, final String filename,
        final boolean ignoreExceptions, final boolean immediateFlush, final Advertiser advertiser) {

    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(
                layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = filename;
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:FileAppender.java   
private FileAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
        final FileManager manager, final String filename, final boolean ignoreExceptions,
        final boolean immediateFlush, final Advertiser advertiser) {

    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    } else {
        advertisement = null;
    }
    this.fileName = filename;
    this.advertiser = advertiser;
}
项目:Brynhildr    文件:FileLogAppender.java   
private FileLogAppender(String name, Layout<? extends Serializable> layout, Filter filter, RollingFileManager manager, String fileName, String filePattern, boolean ignoreExceptions, boolean immediateFlush, int bufferSize, Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        HashMap<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        this.advertisement = advertiser.advertise(configuration);
    }

    this.fileName = fileName;
    this.filePattern = filePattern;
    this.advertiser = advertiser;
}
项目:log4j2    文件:RollingFileAppender.java   
private RollingFileAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
                            final RollingFileManager manager, final String fileName,
                            final String filePattern, final boolean ignoreExceptions, final boolean immediateFlush,
                            final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<String, String>(layout.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = fileName;
    this.filePattern = filePattern;
    this.advertiser = advertiser;
}
项目:log4j2    文件:RandomAccessFileAppender.java   
private RandomAccessFileAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
        final RandomAccessFileManager manager, final String filename, final boolean ignoreExceptions,
        final boolean immediateFlush, final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<String, String>(
                layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = filename;
    this.advertiser = advertiser;
}
项目:log4j2    文件:FileAppender.java   
private FileAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter, final FileManager manager,
                     final String filename, final boolean ignoreExceptions, final boolean immediateFlush,
                     final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<String, String>(layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = filename;
    this.advertiser = advertiser;
}
项目:log4j2    文件:SocketAppender.java   
protected SocketAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
                         final AbstractSocketManager manager, final boolean ignoreExceptions,
                         final boolean immediateFlush, final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<String, String>(layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:RollingFileAppender.java   
private RollingFileAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
        final RollingFileManager manager, final String fileName, final String filePattern,
        final boolean ignoreExceptions, final boolean immediateFlush, final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = fileName;
    this.filePattern = filePattern;
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:MemoryMappedFileAppender.java   
private MemoryMappedFileAppender(final String name, final Layout<? extends Serializable> layout,
        final Filter filter, final MemoryMappedFileManager manager, final String filename,
        final boolean ignoreExceptions, final boolean immediateFlush, final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        advertisement = advertiser.advertise(configuration);
    }
    this.fileName = filename;
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:SocketAppender.java   
protected SocketAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
        final AbstractSocketManager manager, final boolean ignoreExceptions, final boolean immediateFlush,
        final Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager);
    if (advertiser != null) {
        final Map<String, String> configuration = new HashMap<>(layout.getContentFormat());
        configuration.putAll(manager.getContentFormat());
        configuration.put("contentType", layout.getContentType());
        configuration.put("name", name);
        this.advertisement = advertiser.advertise(configuration);
    } else {
        this.advertisement = null;
    }
    this.advertiser = advertiser;
}
项目:log4j2    文件:BaseConfiguration.java   
@Override
public void setAdvertiser(final Advertiser advertiser) {
    this.advertiser = advertiser;
}
项目:log4j2    文件:BaseConfiguration.java   
@Override
public Advertiser getAdvertiser() {
    return advertiser;
}
项目:log4j2    文件:SyslogAppender.java   
protected SyslogAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
                         final boolean ignoreExceptions, final boolean immediateFlush,
                         final AbstractSocketManager manager, final Advertiser advertiser) {
    super(name, layout, filter, manager, ignoreExceptions, immediateFlush, advertiser);

}
项目:log4j2    文件:TLSSyslogAppender.java   
protected TLSSyslogAppender(String name, Layout<? extends Serializable> layout, Filter filter,
                            boolean ignoreExceptions, boolean immediateFlush, AbstractSocketManager manager,
                            Advertiser advertiser) {
    super(name, layout, filter, ignoreExceptions, immediateFlush, manager, advertiser);
}
项目:logging-log4j2    文件:AbstractConfiguration.java   
@Override
public void setAdvertiser(final Advertiser advertiser) {
    this.advertiser = advertiser;
}
项目:logging-log4j2    文件:AbstractConfiguration.java   
@Override
public Advertiser getAdvertiser() {
    return advertiser;
}
项目:logging-log4j2    文件:SyslogAppender.java   
protected SyslogAppender(final String name, final Layout<? extends Serializable> layout, final Filter filter,
                         final boolean ignoreExceptions, final boolean immediateFlush,
                         final AbstractSocketManager manager, final Advertiser advertiser) {
    super(name, layout, filter, manager, ignoreExceptions, immediateFlush, advertiser);

}
项目:log4j2    文件:Configuration.java   
void setAdvertiser(Advertiser advertiser);
项目:log4j2    文件:Configuration.java   
Advertiser getAdvertiser();
项目:logging-log4j2    文件:Configuration.java   
void setAdvertiser(Advertiser advertiser);
项目:logging-log4j2    文件:Configuration.java   
Advertiser getAdvertiser();