aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-09 21:01:55 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-09 21:01:55 +0200
commitd416425f5130263c9cee26672c76bbf9c2fd09ea (patch)
treef23ec9f5d027f388d872973e198d14b119bcae73 /examples/elementary
parentMake Evas.SO iterator a generic Eo iterator and move to efl.eo (diff)
downloadpython-efl-d416425f5130263c9cee26672c76bbf9c2fd09ea.tar.gz
Evas.SmartObject: Trivial changes
Removed cruft, upgraded cls == NULL log message level to ERR, added formatter to SO example logging.
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_core_evas_smart.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/elementary/test_core_evas_smart.py b/examples/elementary/test_core_evas_smart.py
index 2137f51..e1bb7cf 100644
--- a/examples/elementary/test_core_evas_smart.py
+++ b/examples/elementary/test_core_evas_smart.py
@@ -189,7 +189,12 @@ def core_evas_smart_clicked(obj, item=None):
if __name__ == "__main__":
import logging
efl_log = logging.getLogger("efl")
- efl_log.addHandler(logging.StreamHandler())
+ efl_log_form = logging.Formatter(
+ "[%(name)s] %(levelname)s in %(funcName)s:%(lineno)d - %(message)s"
+ )
+ efl_log_handler = logging.StreamHandler()
+ efl_log_handler.setFormatter(efl_log_form)
+ efl_log.addHandler(efl_log_handler)
elementary.init()
core_evas_smart_clicked(None)
elementary.run()