This commit is contained in:
Igor I
2025-08-25 09:04:23 +05:00
parent 9d750fc6a3
commit 930ae8eafb
5 changed files with 74 additions and 3 deletions

View File

@ -0,0 +1,16 @@
package logging;
import android.util.Log;
public class AndroidLogger implements Logger {
private final String tag;
public AndroidLogger(Class<?> clazz) {
this.tag = clazz.getSimpleName();
}
public void debug(String msg) { Log.d(tag, msg); }
public void info(String msg) { Log.i(tag, msg); }
public void warn(String msg) { Log.w(tag, msg); }
public void error(String msg) { Log.e(tag, msg); }
}