Skip to content

Logging

David Arnold edited this page Jun 5, 2018 · 3 revisions

In increasing level of importance

const {
    LogDebug3 = 9
    LogDebug2 = 8
    LogDebug = 7
    LogInfo = 6
    LogNotice = 5
    LogWarning = 4
    LogError = 3
}

Log(level int, format str, interface{}...)

The minimum level of importance to be logged

SetLogLevel(int)
GetLogLevel() int

Override the default logging mechanism (use nil) to restore.

SetLogReceiver(cb)

Environment variables controlling the default logging mechanism

ELVIN_LOGFILE
ELVIN_LOGLEVEL
Clone this wiki locally