forked from extern/nushell
swap the date and the log level in the std log
format (#9138)
related to https://github.com/nushell/nushell/issues/8588#issuecomment-1538624565 # Description this PR switches the date and log level in `std log` 👍 # User-Facing Changes the date and log level are now swapped in the `std log` format. # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - ⚫ `toolkit test` - ⚫ `toolkit test stdlib` # After Submitting ``` $nothing ```
This commit is contained in:
parent
a92949b5c3
commit
7a945848de
@ -140,7 +140,7 @@ def log-formatted [
|
||||
prefix: string,
|
||||
message: string
|
||||
] {
|
||||
print --stderr $"($color)($prefix)|(now)|(ansi u)($message)(ansi reset)"
|
||||
print --stderr $"($color)(now)|($prefix)|(ansi u)($message)(ansi reset)"
|
||||
}
|
||||
|
||||
# Log a critical message
|
||||
|
Loading…
Reference in New Issue
Block a user