@PluginElement("LoggerFields") final LoggerFields[] loggerFields,
@PluginAttribute(value = "advertise", defaultBoolean = false) final boolean advertise) {
// @formatter:on
// TODO: add Protocol to TypeConverters
final Protocol protocol = EnglishEnums.valueOf(Protocol.class, protocolStr);
final boolean useTlsMessageFormat = sslConfig != null || protocol == Protocol.SSL;
final Layout<? extends Serializable> layout = RFC5424.equalsIgnoreCase(format) ?
Rfc5424Layout.createLayout(facility, id, enterpriseNumber, includeMdc, mdcId, mdcPrefix, eventPrefix, newLine,
escapeNL, appName, msgId, excludes, includes, required, exceptionPattern, useTlsMessageFormat, loggerFields,
config) :