log: add temporary get_level() (#11946)

pull/11955/head
trollkarlen 2021-09-23 11:05:11 +02:00 committed by GitHub
parent 4d0f835548
commit b52f79e137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ pub mut:
output_file_name string // log output to this file
}
// get_level gets the internal logging level.
pub fn (mut l Log) get_level() Level {
return l.level
}
// set_level sets the internal logging to `level`.
pub fn (mut l Log) set_level(level Level) {
l.level = level