log: make .send_output public

pull/9565/head
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
1 changed files with 1 additions and 1 deletions

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)
} }