openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Spencer Ku (古世瑜)" <Spencer.Ku@quantatw.com>
To: Artem Senichev <artemsen@gmail.com>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Modify Timestamp of phosphor-hostlogger
Date: Wed, 14 Oct 2020 10:35:58 +0000	[thread overview]
Message-ID: <4b1c3d6cd2fb42a9b4ca166ac90f9ae9@quantatw.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

Hi All,
We have worked on a redfish URI that provides host log information, which is based on obmc-console and phosphor-hostlogger. Now we can get host log and fill information into host log entry, but here we have a problem about timestamp.

One of the log entry level “created time”, need to follow the time format like RFC3339, and for now, the host log only provides hour, minute, and second time info. We want to modify the timestamp to RFC3339 format to fit the log entry time format.

Here is a sample host log with timestamp providing by phosphor-hostlogger:
[ 00:00:31 ] >>> Log collection started at 1970-01-01 00:00:31

After modified, the message will be liked:
[ 1970-01-01T00:00:31+00:00 ] >>> Log collection started at 1970-01-01 00:00:31

if the changes make sense, we will push the changes to upstream.
Please let us know if there's any issue, thank you.

Sincerely,
Spencer

[-- Attachment #2: Type: text/html, Size: 4379 bytes --]

             reply	other threads:[~2020-10-14 10:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14 10:35 Spencer Ku (古世瑜) [this message]
2020-10-15  6:45 ` Modify Timestamp of phosphor-hostlogger Artem Senichev
2020-10-16  8:23   ` Spencer Ku (古世瑜)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b1c3d6cd2fb42a9b4ca166ac90f9ae9@quantatw.com \
    --to=spencer.ku@quantatw.com \
    --cc=artemsen@gmail.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).