[systemd-devel] [PATCH] journalctl: add --iso-dates for long timestamps
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Wed Jul 17 08:58:32 PDT 2013
On Wed, Jul 17, 2013 at 05:15:05PM +0200, Tomasz Torcz wrote:
> Add possibility have "short" output with long format ISO 8601 timestamps,
> like "2008-05-28T14:14:46.316223-04:00".
> ---
> man/journalctl.xml | 8 ++++++++
> src/journal/journalctl.c | 11 ++++++++++-
> src/shared/logs-show.c | 8 +++++++-
> src/shared/output-mode.h | 3 ++-
> 4 files changed, 27 insertions(+), 3 deletions(-)
>
> diff --git a/man/journalctl.xml b/man/journalctl.xml
> index 3e03c45..8c9a796 100644
> --- a/man/journalctl.xml
> +++ b/man/journalctl.xml
> @@ -170,6 +170,14 @@
> </varlistentry>
>
> <varlistentry>
> + <term><option>--iso-dates</option></term>
> +
> + <listitem><para>In "short" output mode,
> + show timestamps in verbose, ISO 8601 format.
> + </para></listitem>
> + </varlistentry>
So, now we have -o short, -o short-monotonic, and --iso-dates.
I'm sure we'll add a relative timestamp mode like the excellent one in
dmesg --human output in recent util-linux. So I'd say that it makes
sense to deprecate short-monotonic and add a new switch --timestamps,
--timestamps=monotonic → old short-monotonic
--timestamps=iso-date → what you're proposing
--timestamps=...
This makes the whole thing easier to grok, imo. Journalctl already has
1½ page listing of options...
Zbyszek
More information about the systemd-devel
mailing list