Re: [systemd-devel] Adding an option to prefix date time when journal forwards messages to console

2013-11-12 Thread Umut Tezduyar Lindskog


 -Original Message-
 From: Kay Sievers [mailto:k...@vrfy.org]
 Sent: den 11 november 2013 16:31
 To: Umut Tezduyar Lindskog
 Cc: systemd-devel@lists.freedesktop.org
 Subject: Re: [systemd-devel] Adding an option to prefix date time when
 journal forwards messages to console
 
 On Mon, Nov 11, 2013 at 4:24 PM, Umut Tezduyar Lindskog
 umut.tezdu...@axis.com wrote:
  We think being able to see the journal message timestamps on console is
 important. A locked up embedded system where we only have the output of
 console would be even more useful if we were to know when things went
 wrong. For this reason, we would like to ask: is it ok if we have such feature
 in journald.conf?
 
 The kernel controls this behaviour with the boolean:
   /sys/module/printk/parameters/time
 maybe we could read just that?

Should we keep the formatting same as kernel then?

[   16.38] systemd-journald[376]: Received request to flush runtime journal 
from PID 1

Is there a way to get notified when the value of 
/sys/module/printk/parameters/time is changed? It might be expensive to read 
the value before every forward to console.

Umut

 
 Kay
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Adding an option to prefix date time when journal forwards messages to console

2013-11-12 Thread Kay Sievers
On Tue, Nov 12, 2013 at 9:55 AM, Umut Tezduyar Lindskog

  We think being able to see the journal message timestamps on console is
 important. A locked up embedded system where we only have the output of
 console would be even more useful if we were to know when things went
 wrong. For this reason, we would like to ask: is it ok if we have such 
 feature
 in journald.conf?

 The kernel controls this behaviour with the boolean:
   /sys/module/printk/parameters/time
 maybe we could read just that?

 Should we keep the formatting same as kernel then?

 [   16.38] systemd-journald[376]: Received request to flush runtime 
 journal from PID 1

 Is there a way to get notified when the value of 
 /sys/module/printk/parameters/time is changed? It might be expensive to read 
 the value before every forward to console.

I guess it's fine to just read it once at journald startup. It's not
really that different from a kernel command line parameter, which
cannot changed at runtime. If printk.time is used, the parameter will
reflect that.

Kay
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Adding an option to prefix date time when journal forwards messages to console

2013-11-11 Thread Umut Tezduyar Lindskog
Hi,

We think being able to see the journal message timestamps on console is 
important. A locked up embedded system where we only have the output of console 
would be even more useful if we were to know when things went wrong. For this 
reason, we would like to ask: is it ok if we have such feature in journald.conf?

Thanks,
Umut
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Adding an option to prefix date time when journal forwards messages to console

2013-11-11 Thread Kay Sievers
On Mon, Nov 11, 2013 at 4:24 PM, Umut Tezduyar Lindskog
umut.tezdu...@axis.com wrote:
 We think being able to see the journal message timestamps on console is 
 important. A locked up embedded system where we only have the output of 
 console would be even more useful if we were to know when things went wrong. 
 For this reason, we would like to ask: is it ok if we have such feature in 
 journald.conf?

The kernel controls this behaviour with the boolean:
  /sys/module/printk/parameters/time
maybe we could read just that?

Kay
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel