org.apache.juli.logging.ch.qos.logback.core.property.CanonicalHostNamePropertyDefiner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomcat85-slf4j-logback Show documentation
Show all versions of tomcat85-slf4j-logback Show documentation
Tomcat85 Slf4j Logback Integration
package org.apache.juli.logging.ch.qos.logback.core.property;
import org.apache.juli.logging.ch.qos.logback.core.PropertyDefinerBase;
import org.apache.juli.logging.ch.qos.logback.core.util.NetworkAddressUtil;
public class CanonicalHostNamePropertyDefiner extends PropertyDefinerBase {
@Override
public String getPropertyValue() {
return new NetworkAddressUtil(getContext()).safelyGetCanonicalLocalHostName();
}
}