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

log: add temporary get_level() (#11946)

This commit is contained in:
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

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