mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
This commit is contained in:
parent
0de2f742f0
commit
a5f400ee77
11 changed files with 41 additions and 29 deletions
|
@ -125,16 +125,16 @@ fn (mut l Log) log_file(s string, level Level) {
|
|||
|
||||
unsafe {
|
||||
l.ofile.write_ptr(timestamp.str, timestamp.len)
|
||||
l.ofile.write_ptr(' '.str, 1)
|
||||
l.ofile.write_ptr(c' ', 1)
|
||||
|
||||
l.ofile.write_ptr('['.str, 1)
|
||||
l.ofile.write_ptr(c'[', 1)
|
||||
l.ofile.write_ptr(e.str, e.len)
|
||||
l.ofile.write_ptr(']'.str, 1)
|
||||
l.ofile.write_ptr(c']', 1)
|
||||
|
||||
l.ofile.write_ptr(' '.str, 1)
|
||||
l.ofile.write_ptr(c' ', 1)
|
||||
l.ofile.write_ptr(s.str, s.len)
|
||||
|
||||
l.ofile.write_ptr('\n'.str, 1)
|
||||
l.ofile.write_ptr(c'\n', 1)
|
||||
}
|
||||
if l.always_flush {
|
||||
l.flush()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue