davidbarsky / tracing-tree

Apache License 2.0
128 stars 31 forks source link

timestamp padding is ugly #13

Closed hawkw closed 1 year ago

hawkw commented 4 years ago

Currently, timestamps are padded like this:

    0ms  INFO starting
    300ms  INFO listening

There are always two spaces after the "ms", regardless of how many characters there are in the actual timestamp value. This means that the rest of the message is not aligned, which is ugly.

Ideally, it would look like this:

    0ms    INFO starting
    300ms  INFO listening
davidbarsky commented 4 years ago

hmm, that's not great. this should be fixed.

hawkw commented 4 years ago

I might take a crack at it; it shouldn't be too tricky to do.