Package com.wowza.wms.logging
Class WMSLoggerFactory
- Object
-
- com.wowza.wms.logging.WMSLoggerFactory
-
public class WMSLoggerFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
CACHE_MAXSIZE_PURGE
static long
CACHE_MAXTIME_PURGE
static String
LOGGERNAME_SERVER
-
Constructor Summary
Constructors Constructor Description WMSLoggerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearLoggerCache()
void
clearLoggerCacheIfOlderThan(long olderThan)
static void
doIdle()
static Object
getGlobalLogValue(String key)
static String
getGlobalLogValueAsString(String key)
static WMSLoggerFactory
getInstance()
static WMSLogger
getLogger(Class classObj)
java.util.List<String>
getLoggerNames()
static WMSLogger
getLoggerObj(IApplication application)
static WMSLogger
getLoggerObj(IApplicationInstance appInstance)
static WMSLogger
getLoggerObj(IVHost vhost)
static WMSLogger
getLoggerObj(Class classObj, IApplication application)
static WMSLogger
getLoggerObj(Class classObj, IApplicationInstance appInstance)
static WMSLogger
getLoggerObj(Class classObj, IVHost vhost)
WMSLogger
getLoggerObj(Class classObj, String name, String vhostName, String appName, String appInstName)
WMSLogger
getLoggerObj(String name)
WMSLogger
getLoggerObj(String name, String vhost, String app, String appInst)
static void
initContextLogging(IApplication application)
static void
initContextLogging(IApplicationInstance appInstance)
static void
initContextLogging(IVHost vhost)
static WMSLogger
initializeLogging(String loggingConfigURL)
static WMSLogger
initializeLogging(String loggingConfigURL, IVHost vhost)
static boolean
isGlobalLogValueSet(String key)
static void
putGlobalLogValue(String key, Object obj)
static void
removeGlobalLogValue(String key)
static void
removeGlobalLogValues()
static void
resetMDC()
-
-
-
Field Detail
-
LOGGERNAME_SERVER
public static final String LOGGERNAME_SERVER
- See Also:
- Constant Field Values
-
CACHE_MAXSIZE_PURGE
public static final int CACHE_MAXSIZE_PURGE
- See Also:
- Constant Field Values
-
CACHE_MAXTIME_PURGE
public static final long CACHE_MAXTIME_PURGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static WMSLoggerFactory getInstance()
-
getLoggerObj
public WMSLogger getLoggerObj(Class classObj, String name, String vhostName, String appName, String appInstName)
-
getLoggerNames
public java.util.List<String> getLoggerNames()
-
getLoggerObj
public WMSLogger getLoggerObj(String name, String vhost, String app, String appInst)
-
getLoggerObj
public WMSLogger getLoggerObj(String name)
-
clearLoggerCache
public void clearLoggerCache()
-
clearLoggerCacheIfOlderThan
public void clearLoggerCacheIfOlderThan(long olderThan)
-
initContextLogging
public static void initContextLogging(IVHost vhost)
-
initContextLogging
public static void initContextLogging(IApplication application)
-
initContextLogging
public static void initContextLogging(IApplicationInstance appInstance)
-
initializeLogging
public static WMSLogger initializeLogging(String loggingConfigURL)
-
resetMDC
public static void resetMDC()
-
removeGlobalLogValues
public static void removeGlobalLogValues()
-
removeGlobalLogValue
public static void removeGlobalLogValue(String key)
-
isGlobalLogValueSet
public static boolean isGlobalLogValueSet(String key)
-
putGlobalLogValue
public static void putGlobalLogValue(String key, Object obj)
-
getGlobalLogValue
public static Object getGlobalLogValue(String key)
-
getGlobalLogValueAsString
public static String getGlobalLogValueAsString(String key)
-
getLoggerObj
public static WMSLogger getLoggerObj(IApplication application)
-
getLoggerObj
public static WMSLogger getLoggerObj(Class classObj, IApplication application)
-
getLoggerObj
public static WMSLogger getLoggerObj(IApplicationInstance appInstance)
-
getLoggerObj
public static WMSLogger getLoggerObj(Class classObj, IApplicationInstance appInstance)
-
getLogger
public static WMSLogger getLogger(Class classObj)
-
doIdle
public static void doIdle()
-
-