mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
log: unify output order between cli and file (#9693)
This commit is contained in:
parent
8193efb379
commit
9957e5a2c5
@ -126,9 +126,9 @@ fn (mut l Log) log_file(s string, level Level) {
|
|||||||
|
|
||||||
// log_cli writes log line `s` with `level` to stdout.
|
// log_cli writes log line `s` with `level` to stdout.
|
||||||
fn (l &Log) log_cli(s string, level Level) {
|
fn (l &Log) log_cli(s string, level Level) {
|
||||||
f := tag_to_cli(level)
|
timestamp := time.now().format_ss()
|
||||||
t := time.now()
|
e := tag_to_cli(level)
|
||||||
println('[$f $t.format_ss()] $s')
|
println('$timestamp [$e] $s')
|
||||||
}
|
}
|
||||||
|
|
||||||
// send_output writes log line `s` with `level` to either the log file or the console
|
// send_output writes log line `s` with `level` to either the log file or the console
|
||||||
|
Loading…
Reference in New Issue
Block a user