Skip to content

Commit 5f6193b

Browse files
committed
Extend ANSI time tag aliases
1 parent 3be7aea commit 5f6193b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/emitter/lineTransformerANSI.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ var Tags = []tag{
137137
{0, []string{"tr", "Trace", "trace", "TRACE"}, colorizeTRACE},
138138

139139
// user modes
140-
{0, []string{"tim", "time", "TIM", "TIME", "TIMESTAMP", "timestamp", "Timestamp"}, colorizeTIME},
140+
{0, []string{"tim", "time", "Time", "TIM", "TIME", "TIMESTAMP", "timestamp", "Timestamp"}, colorizeTIME},
141141
{0, []string{"m", "msg", "message", "M", "MSG", "MESSAGE", "OK"}, colorizeMESSAGE},
142142
{0, []string{"r", "rx", "rd", "read", "rd_", "RD", "RD_", "READ"}, colorizeREAD},
143143
{0, []string{"w", "tx", "wr", "write", "wr_", "WR", "WR_", "WRITE"}, colorizeWRITE},
@@ -156,6 +156,9 @@ var Tags = []tag{
156156
{0, []string{"CYCLE_ERROR"}, colorizeCYCLE}, // not for user code!
157157
{0, []string{"v", "Verbose", "verbose", "VERBOSE"}, colorizeVERBOSE},
158158
{0, []string{"cfg", "config"}, colorizeDEFAULT},
159+
{0, []string{"us", "µs", "uS", "µS", "uSec", "µSec", "uSEC", "µSEC", "MicroSec", "Microsecond", "Microseconds"}, colorizeTIME},
160+
{0, []string{"ms", "mS", "mSec", "mSEC", "MSEC", "MilliSec", "Millisecond", "Milliseconds"}, colorizeTIME},
161+
{0, []string{"s", "S", "Sec", "SEC", "SECOND", "SECONDS", "Second", "Seconds"}, colorizeTIME},
159162
}
160163

161164
// FindTagName maps any tag alias to its canonical name.

0 commit comments

Comments
 (0)