Preparing for the transition to REST API

This commit is contained in:
2025-06-24 23:08:38 +05:00
parent 0de815893f
commit ed14a3fa9e
35 changed files with 1544 additions and 1486 deletions

View File

@ -0,0 +1,22 @@
package logging;
public class LoggerFactory {
public static Logger createLogger(Class<?> clazz) {
// Тут выбираешь реализацию по флагу/условию
//if (isAndroid()) {
// return new AndroidLogger(clazz);
//} else {
return new SLF4JLogger(clazz);
//}
}
private static boolean isAndroid() {
try {
Class.forName("android.os.Build");
return true;
} catch (ClassNotFoundException e) {
return false;
}
}
}