mirror of
https://github.com/nushell/nushell
synced 2024-11-10 15:14:14 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ def log-formatted [
|
||||||
prefix: string,
|
prefix: string,
|
||||||
message: 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
|
# Log a critical message
|
||||||
|
|
Loading…
Reference in a new issue