public abstract class WZLogger extends Object
WZLogger
defines a base class to extend when developing a custom logger class.
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 WZLogger
and registering
an instance using WZLog.registerLogger(WZLogger)
public class MyLogger extends WZLogger {
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();
WZLog.registerLogger(customLogger);
Constructor and Description |
---|
WZLogger() |
Modifier and Type | Method and Description |
---|---|
void |
debug(String tag,
String message) |
void |
error(String tag,
String message) |
void |
error(String tag,
String message,
Throwable th) |
void |
error(String tag,
Throwable th) |
void |
info(String tag,
String message) |
void |
verbose(String tag,
String message) |
void |
warn(String tag,
String message) |
public void error(String tag, Throwable th)
WZLog.error(java.lang.String, Throwable)
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal