1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

log: make .send_output public

This commit is contained in:
Delyan Angelov 2021-04-02 13:53:29 +03:00
parent bcb3992406
commit af14c808a3
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -133,7 +133,7 @@ fn (l &Log) log_cli(s string, level Level) {
// 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
// according to the value of the `.output_target` field. // according to the value of the `.output_target` field.
fn (mut l Log) send_output(s &string, level Level) { pub fn (mut l Log) send_output(s &string, level Level) {
if l.output_target == .file || l.output_target == .both { if l.output_target == .file || l.output_target == .both {
l.log_file(s, level) l.log_file(s, level)
} }