From b52f79e137435a2026a6eec318849a8baf3a7879 Mon Sep 17 00:00:00 2001 From: trollkarlen Date: Thu, 23 Sep 2021 11:05:11 +0200 Subject: [PATCH] log: add temporary get_level() (#11946) --- vlib/log/log.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/log/log.v b/vlib/log/log.v index a6259a9fdd..6440bbb4a1 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -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