Package com.wowza.wms.manifest.model
Class ManifestModelLogging
- Object
- 
- com.wowza.wms.manifest.model.ManifestModelLogging
 
- 
- All Implemented Interfaces:
- Cloneable
 - Direct Known Subclasses:
- ManifestModel,- ManifestValidator,- ManifestWriter,- PlaylistBuilder,- Segment,- TagModel
 
 public abstract class ManifestModelLogging extends Object implements CloneableThis class is the base of all the manifest models providing a standardized mechanism of logging
- 
- 
Constructor SummaryConstructors Constructor Description ManifestModelLogging()Constructs an empty Manifest Model
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectclone()protected abstract StringgetContextStr()Get the context string associated with the Model to include with the log statementsbooleangetDebugLog()Get the current debug log settingvoidlogDebug(String methodName, String log)log information conditionally based on debug setting using the info level of the loggervoidlogError(String methodName, String log)log a string at the error settingvoidlogError(String methodName, String log, Throwable e)log a string and a throwable information at the error settingvoidlogError(String methodName, Throwable e)log a throwables information at the error settingvoidlogInfo(String methodName, String log)Log a string at the info settingvoidlogWarn(String methodName, String log)log 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)booleanusingSystemOut()Get the current setting of using the system out for debug (vs log4j)
 
- 
- 
- 
Method Detail- 
setDebugLogpublic boolean setDebugLog(boolean debugLog) Enable/disable debug logging.- Parameters:
- debugLog-
- Returns:
- boolean value of the debug log setting before applying the new setting
 
 - 
getDebugLogpublic boolean getDebugLog() Get the current debug log setting- Returns:
- true if debug logging is enabled
 
 - 
setUseSystemOutpublic void setUseSystemOut(boolean useSystemOut) specify whether to log using System.out rather than the default (log4j)- Parameters:
- useSystemOut-
 
 - 
usingSystemOutpublic boolean usingSystemOut() Get the current setting of using the system out for debug (vs log4j)- Returns:
- true if logging is using System.out
 
 - 
logDebugpublic void logDebug(String methodName, String log)log information conditionally based on debug setting using the info level of the logger- Parameters:
- methodName- - method name to include in the log statement
- log- - the string to log
 
 - 
logInfopublic void logInfo(String methodName, String log)Log a string at the info setting- Parameters:
- methodName- - method name to include in the log statement
- log- - the string to log
 
 - 
logWarnpublic void logWarn(String methodName, String log)log a string at the warn setting- Parameters:
- methodName- - method name to include in the log statement
- log- - the string to log
 
 - 
logErrorpublic void logError(String methodName, String log)log a string at the error setting- Parameters:
- methodName- - method name to include in the log statement
- log- - the string to log
 
 - 
logErrorpublic void logError(String methodName, String log, Throwable e)log a string and a throwable information at the error setting- Parameters:
- methodName- - method name to include in the log statement
- log- - the string to log
- e- - the throwable exception to log the information about
 
 - 
logErrorpublic void logError(String methodName, Throwable e)log a throwables information at the error setting- Parameters:
- methodName- - method name to include in the log statement
- e- - the throwable exception to log the information about
 
 - 
getContextStrprotected abstract String getContextStr() Get the context string associated with the Model to include with the log statements- Returns:
- String
 
 - 
clonepublic Object clone() throws CloneNotSupportedException- Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
 
- 
 
-