org.mp4parser.support.AndroidLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isoparser Show documentation
Show all versions of isoparser Show documentation
A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)
package org.mp4parser.support;
import android.util.Log;
/**
* Logs on Android.
*/
public class AndroidLogger extends Logger {
private static final String TAG = "isoparser";
String name;
public AndroidLogger(String name) {
this.name = name;
}
@Override
public void logDebug(String message) {
Log.d(TAG, name + ":" + message);
}
@Override
public void logWarn(String message) {
Log.w(TAG, name + ":" + message);
}
@Override
public void logError(String message) {
Log.e(TAG, name + ":" + message);
}
}