Package com.wowza.wms.manifest.reader
Class ManifestReaderLogging
Object
com.wowza.wms.manifest.reader.ManifestReaderLogging
- Direct Known Subclasses:
ManifestReader
This class is the base of all the manifest readers providing a standardized mechanism of logging
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringGet the context string associated with the Model to include with the log statementsbooleanGet the current setting for debug loggingvoidlog information conditionally based on debug setting using the info level of the loggervoidlog a string at the error settingvoidlog a string and a throwable information at the error settingvoidlog a throwables information at the error settingvoidLog a string at the info settingvoidlog a string at the warn settingbooleansetDebugLog(boolean debugLog) Enable/disable debug logging.voidsetUseSystemOut(boolean useSystemOut) specify whether to log using System.out rather than the default (log4j)booleanGet the setting controlling the debug output to System.out (vs log4j)
-
Constructor Details
-
ManifestReaderLogging
public ManifestReaderLogging()Constructs an empty Manifest Reader
-
-
Method Details
-
setDebugLog
public boolean setDebugLog(boolean debugLog) Enable/disable debug logging.- Parameters:
debugLog-- Returns:
- boolean value of the debug log setting before applying the new setting
-
getDebugLog
public boolean getDebugLog()Get the current setting for debug logging- Returns:
- true debug logging is enabled
-
setUseSystemOut
public void setUseSystemOut(boolean useSystemOut) specify whether to log using System.out rather than the default (log4j)- Parameters:
useSystemOut-
-
usingSystemOut
public boolean usingSystemOut()Get the setting controlling the debug output to System.out (vs log4j)- Returns:
- true if using System.out for logging
-
logDebug
log information conditionally based on debug setting using the info level of the logger- Parameters:
methodName- - method name to include in the log statementlog- - the string to log
-
logInfo
Log a string at the info setting- Parameters:
methodName- - method name to include in the log statementlog- - the string to log
-
logWarn
log a string at the warn setting- Parameters:
methodName- - method name to include in the log statementlog- - the string to log
-
logError
log a string at the error setting- Parameters:
methodName- - method name to include in the log statementlog- - the string to log
-
logError
log a string and a throwable information at the error setting- Parameters:
methodName- - method name to include in the log statementlog- - the string to loge- - the throwable exception to log the information about
-
logError
log a throwables information at the error setting- Parameters:
methodName- - method name to include in the log statemente- - the throwable exception to log the information about
-
getContextStr
Get the context string associated with the Model to include with the log statements- Returns:
- String
-