mirror of
https://github.com/RussellChamp/advent-of-code-2021.git
synced 2026-10-27 21:52:32 +00:00
day 14 and 15
This commit is contained in:
1 parent
6e22bbe567
commit
4737afa383
12 files changed
+678
-3
No files matched your search
@@ -9,7 +9,20 @@ const (
|
||||
DIAGNOSTIC = 3
|
||||
)
|
||||
|
||||
const (
|
||||
CONSOLE = 1
|
||||
FILE = 2
|
||||
)
|
||||
|
||||
var LOG_LEVEL = NORMAL
|
||||
var LOG_TIMESTAMP = false
|
||||
var LOG_OUTPUT = CONSOLE
|
||||
|
||||
func SetLogLevel(level int) {
|
||||
if level >= NONE && level <= DIAGNOSTIC {
|
||||
LOG_LEVEL = level
|
||||
}
|
||||
}
|
||||
|
||||
func Print(minLevel int, a ...interface{}) (int, error) {
|
||||
if LOG_LEVEL >= minLevel {
|
||||
|
||||
Reference in new issue
Block a user