< Home

(Optional) Setting the Timestamp Format of Logs

Context

To adjust the time format and time precision for information output, configure the timestamp.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run info-center timestamp log { { date | format-date | short-date } [ precision-time { second | tenth-second | millisecond } ] | boot } [ without-timezone ]

    The timestamp format of logs is configured.

    By default, the timestamp format of logs is date and logs are accurate to seconds.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >