Added loglevel? symbol (ref: #53).
h3rald h3rald@h3rald.com
Sun, 02 Feb 2020 13:38:31 +0100
2 files changed,
4 insertions(+),
1 deletions(-)
M
lib/min_lang.nim
→
lib/min_lang.nim
@@ -90,7 +90,7 @@ var str = s.getString
echo "Log level: ", setLogLevel(str) def.symbol("loglevel?") do (i: In): - echo "Log level: ", getLogLevel() + i.push getLogLevel().newVal # Language constructs
M
site/contents/reference-lang.md
→
site/contents/reference-lang.md
@@ -201,6 +201,9 @@ > > Note
> > > > The default logging level is _notice_.#} +{#op||loglevel?||{{null}}||{{s}}|| +Returns the current log level (debug, info, notive, warn, error or fatal). #} + {#op||module||{{d}} {{sl}}||{{null}}|| Creates a new module {{sl}} based on dictionary {{d}}. #}