Documentation
¶
Overview ¶
The oryx logger package provides connection-oriented log service.
logger.Info.Println(Context, ...) logger.Trace.Println(Context, ...) logger.Warn.Println(Context, ...) logger.Error.Println(Context, ...)
@remark the Context is optional thus can be nil.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close() (err error)
The interface io.Closer Cleanup the logger, discard any log util switch to fresh writer.
Types ¶
type Context ¶
type Context interface { // get current goroutine cid. Cid() int }
the context for current goroutine.
type Logger ¶
type Logger interface { // Println for logger plus, // @param ctx the connection-oriented context, or nil to ignore. Println(ctx Context, a ...interface{}) }
The logger for oryx.
var Error Logger
Error, the error level, fatal error things, ot stderr.
var Info Logger
Info, the verbose info level, very detail log, the lowest level, to discard.
var Trace Logger
Trace, the trace level, something important, the default log level, to stdout.
var Warn Logger
Warn, the warning level, dangerous information, to stderr.
func NewLoggerPlus ¶
Click to show internal directories.
Click to hide internal directories.