Skip to content

make default log timeformat human readable #259

Answered by ansd
ArgTang asked this question in Q&A
Discussion options

You must be logged in to vote

Can you change the loglevel as well here?

The command line flags of the zap logger can be found here.

For example, to only output error logs, configure the messaging-topology-operator deployment YAML as follows:

    spec:
      containers:
      - args:
        - --zap-log-level=error
        command:
        - /manager

I agree, we should document these flags.

Another point is when looking directly at the logs in the pod as well make it hard to parse the timestamp. to see what logs is relevant.

You can use kubectl logs --timestamps. This flag will include human readable timestamps on each line in the log output (They might deviate by a few microseconds from the timestamp output by the…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ChunyiLyu
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #241 on November 16, 2021 14:22.