summaryrefslogtreecommitdiff
path: root/docs/random/ensonic
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-08-18 08:07:12 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2006-08-18 08:07:12 +0000
commitd0190384279a8f4d9a891647336820aa46910314 (patch)
tree41709ac3541d5304df2784ba7957d57bcd923e21 /docs/random/ensonic
parent477870c5444a314781f25c82e1c666b8e5988715 (diff)
docs/random/ensonic/logging.txt: add ideas about making the logs abit more useful
Original commit message from CVS: * docs/random/ensonic/logging.txt: add ideas about making the logs abit more useful
Diffstat (limited to 'docs/random/ensonic')
-rw-r--r--docs/random/ensonic/logging.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/docs/random/ensonic/logging.txt b/docs/random/ensonic/logging.txt
new file mode 100644
index 000000000..5f6765e37
--- /dev/null
+++ b/docs/random/ensonic/logging.txt
@@ -0,0 +1,49 @@
+$Id$
+
+rethink log format. current format:
+* is not easy to parse/process by commandline tools
+* cannnot be easily diffed (timestamps, pid)
+
+gst_debug_log_default() is default gst-log handler.
+try new via:
+ gst_debug_remove_log_function(gst_debug_log_default)
+ gst_debug_add_log_function(func,data)
+
+== reorder fields ==
+
+format of default handler is:
+ DEBUG (0x8134bc0 - 0:00:00.848191000) GST_QOS( 3340) gstbasesink.c(1431):gst_base_sink_do_render_stats:<xvimagesink0> avg_render: 0:00:00.009044000
+log_level_name --^^^^^ | | | | | | | | | | | | |
+thread-id --------------^^^^^^^^^ | | | | | | | | | | |
+timestamp --------------------------^^^^^^^^^^^^^^^^^ | | | | | | | | |
+log_category -------------------------------------------------------^^^^^^^ | | | | | | |
+process-id -----------------------------------------------------------------^^^^^ | | | | |
+file:line -------------------------------------------------------------------------^^^^^^^^^^^^^^^^^^^ | | |
+function ----------------------------------------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
+message -----------------------------------------------------------------------------------------------------------------------------^^^^^^^^^^^^^^^
+
+new proposed format:
+ DEBUG GST_QOS( 3340 - 0x8134bc0 - 0:00:00.848191000) gstbasesink.c:1431:gst_base_sink_do_render_stats:<xvimagesink0> avg_render: 0:00:00.009044000
+log_level_name --^^^^^ | | | | | | | | | | | | |
+log_category ------------------------^^^^^^^| | | | | | | | | | |
+process-id ----------------------------------^^^^^ | | | | | | | | |
+thread-id -------------------------------------------^^^^^^^^^ | | | | | | |
+timestamp -------------------------------------------------------^^^^^^^^^^^^^^^^^ | | | | |
+file:line -------------------------------------------------------------------------^^^^^^^^^^^^^^^^^^^ | | |
+function ----------------------------------------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
+message -----------------------------------------------------------------------------------------------------------------------------^^^^^^^^^^^^^^^
+
+something like:
+ sed -e "s/([0-9xa-f:. -]*) / /" -e "s/0x[0-9a-f]\{7,8\}//g"
+should make logs easily 'diffable'.
+
+== color code level ==
+
+I suggedt to color-code loglevels if COLOR is allowed:
+ERROR : red
+WARNING : yellow
+INFO : green
+DEBUG : turkis
+LOG : gray
+NONE : gray
+