public abstract class WOWZLogger
extends java.lang.Object
The GoCoder SDK sends logging output using the standard logging facility on each platform by default.
An alternate logger can be used by creating a subclass implementation of WOWZLogger
and registering
an instance using WOWZLog.registerLogger(WOWZLogger)
. For example, a custom logger class:
public class MyLogger extends WOWZLogger {
public MyLogger() {
}
@Override
public void info(String tag, String message) {
SysLogger.i(tag, message);
}
@Override
public void debug(String tag, String message) {
SysLogger.d(tag, message);
}
@Override
public void warn(String tag, String message) {
SysLogger.w(tag, message);
}
@Override
public void error(String tag, String message) {
SysLogger.e(tag, message);
}
@Override
public void error(String tag, String message, Throwable throwable) {
SysLogger.e(tag, message, throwable);
}
@Override
public void error(String tag, Throwable throwable) {
SysLogger.e(tag, throwable);
}
}
MyLogger customLogger = new MyLogger();
WOWZLog.registerLogger(customLogger);
Constructor and Description |
---|
WOWZLogger() |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String tag,
java.lang.String message) |
void |
error(java.lang.String tag,
java.lang.String message) |
void |
error(java.lang.String tag,
java.lang.String message,
java.lang.Throwable th) |
void |
error(java.lang.String tag,
java.lang.Throwable th) |
void |
info(java.lang.String tag,
java.lang.String message) |
void |
verbose(java.lang.String tag,
java.lang.String message) |
void |
warn(java.lang.String tag,
java.lang.String message) |
public void verbose(java.lang.String tag, java.lang.String message)
public void info(java.lang.String tag, java.lang.String message)
public void debug(java.lang.String tag, java.lang.String message)
public void warn(java.lang.String tag, java.lang.String message)
public void error(java.lang.String tag, java.lang.String message)
public void error(java.lang.String tag, java.lang.String message, java.lang.Throwable th)
public void error(java.lang.String tag, java.lang.Throwable th)
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal