com.googlecode.mp4parser.util.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 com.googlecode.mp4parser.util;
import android.util.Log;
/**
* Logs on Android.
*/
public class AndroidLogger extends Logger {
String name;
private static final String TAG = "isoparser";
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);
}
}