- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.util.NetworkAddressUtil
-
- All Implemented Interfaces:
ContextAware
public class NetworkAddressUtil extends ContextAwareBase
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description NetworkAddressUtil(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetCanonicalLocalHostName()static StringgetLocalHostName()StringsafelyGetCanonicalLocalHostName()StringsafelyGetLocalHostName()Add the local host's name as a property-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
NetworkAddressUtil
public NetworkAddressUtil(Context context)
-
-
Method Detail
-
getLocalHostName
public static String getLocalHostName() throws UnknownHostException, SocketException
- Throws:
UnknownHostExceptionSocketException
-
getCanonicalLocalHostName
public static String getCanonicalLocalHostName() throws UnknownHostException, SocketException
- Throws:
UnknownHostExceptionSocketException
-
safelyGetLocalHostName
public String safelyGetLocalHostName()
Add the local host's name as a property
-
safelyGetCanonicalLocalHostName
public String safelyGetCanonicalLocalHostName()
-
-