From 6a609cb046227677251b24ad49020a146fa31987 Mon Sep 17 00:00:00 2001 From: ytakahashi Date: Tue, 29 Oct 2019 00:53:02 +0900 Subject: [PATCH] log: make const/struct public --- vlib/log/log.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vlib/log/log.v b/vlib/log/log.v index 7f0886003c..494610b28f 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -4,7 +4,7 @@ import os import time import term -const ( +pub const ( FATAL = 1 ERROR = 2 WARN = 3 @@ -20,13 +20,12 @@ interface Logger { debug(s string) } -struct Log{ +pub struct Log { mut: level int output string } - pub fn (l mut Log) set_level(level int){ l.level = level }