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:
parent
4d0f835548
commit
b52f79e137
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user