public final class WOWZLog
extends java.lang.Object
private final static String TAG = "MyClassName";
WOWZLog.LOGGING_ENABLED = true;
WOWZLog.info(TAG, "Become a Wowza Ninja today!");
try {
... code which throws an exception ...
} catch (Exception e) {
WOWZLog.error(TAG, "An error occurred.", e);
}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LOGGING_TAG |
static int |
LOG_LEVEL_DEBUG |
static int |
LOG_LEVEL_ERROR |
static int |
LOG_LEVEL_INFO |
static int |
LOG_LEVEL_VERBOSE |
static int |
LOG_LEVEL_WARN |
static boolean |
LOGGING_ENABLED
Enables logging.
|
static int |
MAX_LOG_LEVEL |
static int |
MIN_LOG_LEVEL |
Constructor and Description |
---|
WOWZLog() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String message)
Sends a debug log message with the default logging tag.
|
static void |
debug(java.lang.String tag,
java.lang.String message)
Sends a debug log message.
|
static void |
error(java.lang.String message)
Sends an error message with the default logging tag.
|
static void |
error(java.lang.String tag,
java.lang.String message)
Sends an error message.
|
static void |
error(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
Sends an error message with an exception to log.
|
static void |
error(java.lang.String tag,
java.lang.Throwable throwable)
Sends an exception to log.
|
static void |
error(java.lang.String tag,
WOWZError error)
Sends an error message.
|
static void |
error(java.lang.String tag,
WOWZError error,
java.lang.Throwable throwable)
Sends an error message.
|
static void |
error(java.lang.Throwable throwable)
Sends an exception to log with the default logging tag.
|
static void |
error(WOWZError error)
Sends an error message with the default logging tag.
|
static void |
error(WOWZError error,
java.lang.Throwable throwable)
Sends an error message with the default logging tag.
|
static WOWZLogger |
getLogger()
Returns the currently registered logger instance.
|
static void |
info(java.lang.String message)
Sends an informational log message with the default logging tag.
|
static void |
info(java.lang.String tag,
java.lang.String message)
Sends an informational log message.
|
static boolean |
isValidLogLevel(int logLevel) |
static void |
registerLogger(WOWZLogger logger)
Registers a custom logger instance.
|
static void |
unregisterLogger(WOWZLogger logger)
Unregisters a custom logger instance.
|
static void |
verbose(java.lang.String message)
Sends an informational log message with the default logging tag.
|
static void |
verbose(java.lang.String tag,
java.lang.String message)
Sends a verbose log message.
|
static void |
warn(java.lang.String message)
Sends a warning log message with the default logging tag.
|
static void |
warn(java.lang.String tag,
java.lang.String message)
Sends a warning log message.
|
static void |
warn(java.lang.String tag,
WOWZError warning)
Sends a warning log message.
|
static void |
warn(WOWZError warning)
Sends a warning message with the default logging tag.
|
public static final java.lang.String DEFAULT_LOGGING_TAG
public static final int LOG_LEVEL_VERBOSE
public static final int LOG_LEVEL_DEBUG
public static final int LOG_LEVEL_INFO
public static final int LOG_LEVEL_WARN
public static final int LOG_LEVEL_ERROR
public static final int MIN_LOG_LEVEL
public static final int MAX_LOG_LEVEL
public static boolean LOGGING_ENABLED
public static boolean isValidLogLevel(int logLevel)
public static void registerLogger(WOWZLogger logger)
WOWZLogger
for information on writing a custom logger.logger
- An instance of a custom logger class.public static void unregisterLogger(WOWZLogger logger)
logger
- An instance of a previously registered custom logger class.public static WOWZLogger getLogger()
public static void verbose(java.lang.String tag, java.lang.String message)
tag
- The source of a log message.message
- The log message.public static void verbose(java.lang.String message)
message
- The log message.public static void info(java.lang.String tag, java.lang.String message)
tag
- The source of a log message.message
- The log message.public static void info(java.lang.String message)
message
- The log message.public static void debug(java.lang.String tag, java.lang.String message)
tag
- The source of a log message.message
- The log message.public static void debug(java.lang.String message)
message
- The log message.public static void warn(java.lang.String tag, java.lang.String message)
tag
- The source of a log message.message
- The log message.public static void warn(java.lang.String message)
message
- The log message.public static void warn(java.lang.String tag, WOWZError warning)
warning
- An instance of the WOWZError class.public static void warn(WOWZError warning)
warning
- An instance of the WOWZError class.public static void error(java.lang.String tag, java.lang.String message)
tag
- The source of a log message.message
- The log message.public static void error(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)
tag
- The source of a log message.message
- The log message.throwable
- An exception to log.public static void error(java.lang.String message)
message
- The log message.public static void error(java.lang.String tag, WOWZError error)
tag
- The source of a log message.error
- An instance of the WOWZError class.public static void error(java.lang.String tag, WOWZError error, java.lang.Throwable throwable)
tag
- The source of a log message.error
- An instance of the WOWZError class.throwable
- An exception to log.public static void error(WOWZError error, java.lang.Throwable throwable)
error
- An instance of the WOWZError class.throwable
- An exception to log.public static void error(WOWZError error)
error
- An instance of the WOWZError class.public static void error(java.lang.String tag, java.lang.Throwable throwable)
tag
- The source of a log message.throwable
- An exception to log.public static void error(java.lang.Throwable throwable)
throwable
- An exception to log.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal