[Xen-devel] [PATCH 3/4] xenstored logging: send trace messages to syslog

2019-12-04 Thread james-xen
From: James Dingwall Unconditionally openlog() since we allow tracesyslog to be changed at runtime. Modify the trace() call to send messages to vsyslog() when tracesyslog is enabled. Note some trace() messages come in several calls before the '\n'. This works well when the output is a file

[Xen-devel] [PATCH 0/4] xenstore domain: improve logging capabilities

2019-12-04 Thread james-xen
on 4.11.3 but I can rebase it to master. James ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

[Xen-devel] [PATCH 2/4] xenstored logging: add control to dynamically toggle tracesyslog flag

2019-12-04 Thread james-xen
From: James Dingwall Add a new xenstore control command which allows the tracesyslog boolean to be changed at run time. --- tools/xenstore/xenstored_control.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tools/xenstore/xenstored_control.c

[Xen-devel] [PATCH 1/4] xenstored logging: introduce -Y / --trace-syslog option

2019-12-04 Thread james-xen
From: James Dingwall Add a new command line argument -Y / --trace-syslog which toggles the boolean tracesyslog variable. --- tools/xenstore/xenstored_core.c | 10 -- tools/xenstore/xenstored_core.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git

[Xen-devel] [PATCH 4/4] xenstored logging: add minios variant of default_xprintf()

2019-12-04 Thread james-xen
From: James Dingwall stderr is not available in a xenstore domain. Add a new implementation of default_xprintf() which sends the message to vsyslog() at LOG_ERROR. --- tools/xenstore/utils.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tools/xenstore/utils.c