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
This class is the base of all the manifest models providing a standardized mechanism of logging
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected abstract String
Get the context string associated with the Model to include with the log statementsboolean
Get the current debug log settingvoid
log information conditionally based on debug setting using the info level of the loggervoid
log a string at the error settingvoid
log a string and a throwable information at the error settingvoid
log a throwables information at the error settingvoid
Log a string at the info settingvoid
log a string at the warn settingboolean
setDebugLog
(boolean debugLog) Enable/disable debug logging.void
setUseSystemOut
(boolean useSystemOut) specify whether to log using System.out rather than the default (log4j)boolean
Get the current setting of using the system out for debug (vs log4j)
-
Constructor Details
-
ManifestModelLogging
public ManifestModelLogging()Constructs an empty Manifest Model
-
-
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 debug log setting- Returns:
- true if 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 current setting of using the system out for debug (vs log4j)- Returns:
- true if logging is using System.out
-
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
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-