github.com/slytomcat/llog (go): Package llog implements level-restricted logging. It is similar and based to standard log package but provides additional flexibility in management of logging messages.  Package provides 5 levels of logging:  There is a standard logger that initialized with os.Stderr as output, "" as prefix, log.LstdFlags (see https://golang.org/pkg/log/#pkg-constants for details) as flags, and WARNING as logging level.  Logging level of standard logger can be changed via SetLevel(level int). Use constants DEBUG, INFO, WARNING, ERROR or CRITICAL for setting the level value. You can also change output: SetOutput(w io.Writer), log message prefix: SetPrefix(prefix string), and message format flags: SetFlags(flag int) (see https://golang.org/pkg/log/#pkg-constants for details about flags).  To create the log message (via default logger) of the required logging level you have to use one of the following functions:  Output of the functions will be additionally tagged with one letter identifier of logging level of message: D(EBUG), I(NFO), W(ARNING), E(RROR) or C(RITICAL). For example  When the current logging level is greater than level of created message then function do nothing.  New() allows to create the new Logger that has the same methods as standard logger.  NOTE: as llog.Logger is just extension of log.Logger the full set of log package methods/functions/constants are available to use together with llog methods. But standard logger has only llog declared methods.
Keywords: go|golang|llog|logging