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:
Antoine Stevan 2023-05-08 19:29:18 +02:00 committed by GitHub
parent a92949b5c3
commit 7a945848de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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