doc:appunti:prog:kivy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:prog:kivy [2019/03/01 13:00] – [A Real App With an ActionBar] niccolo | doc:appunti:prog:kivy [2023/10/06 11:04] – [Logging] niccolo | ||
---|---|---|---|
Line 132: | Line 132: | ||
{{.: | {{.: | ||
- | ===== APK Packager ===== | ||
- | | + | ===== Logging ===== |
+ | |||
+ | Like a plain Python program, it is possible for a Kivy app to produce some logging using the Kivy logger. The output will go, by default, to a file created into the app home directory, into the **files/ | ||
+ | |||
+ | <code python> | ||
+ | from kivy.logger import Logger, LOG_LEVELS | ||
+ | # Set the loglevel. The Android log file will be create into | ||
+ | # [app_home]/files/app/.kivy/logs/ | ||
+ | Logger.setLevel(LOG_LEVELS[' | ||
+ | Logger.info(' | ||
+ | </ | ||
+ | |||
+ | Without root privileges it is not possibile | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Every time that the Kivy environment is initializated, | ||
+ | |||
doc/appunti/prog/kivy.txt · Last modified: 2023/10/07 21:53 by niccolo