I use java.util.logger. I create and call it like this:
LogManager man = LogManager.getLogManager(); try { manager.readConfiguration(getAssets().open("log.properties")); logger=Logger.getLogger("MyApp"); } catch (IOException e) { e.printStackTrace(); } logger.info("AAAAAAAAAAAAAAAAA");
Its configuration is:
# Глобальные настройки handlers = java.util.logging.FileHandler # Конфигурация сохранения в файл java.util.logging.FileHandler.level = ALL java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter java.util.logging.FileHandler.limit = 1000000 java.util.logging.FileHandler.pattern = /storage/sdcard0/Android/data/log.txt
The configuration pulls up normally. No errors. Only the log file on the specified path does not appear. What am I doing wrong?
logger
? - Dred