Documentation ¶
Index ¶
- func Debugc(ctx context.Context, args ...interface{})
- func Debugf(args ...interface{})
- func Errorc(ctx context.Context, args ...interface{})
- func Errorf(args ...interface{})
- func Infoc(ctx context.Context, args ...interface{})
- func Infof(args ...interface{})
- func NewJSONFileLogger(lvl l4g.Level, filename string) l4g.Logger
- func WithRequestId(ctx context.Context, requestID string) context.Context
- func WithUserId(ctx context.Context, userID string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugc ¶
Debugc logs a debugLog level message, including context information that is stored in the first parameter. If two parameters are supplied, the second must be a message string, and will be logged directly. If more than two parameters are supplied, the second parameter must be a format string, and the remaining parameters must be the variables to substitute into the format string, following the convention of the fmt.Sprintf(...) function.
func Debugf ¶
func Debugf(args ...interface{})
Debugf logs a debugLog level message. If one parameter is supplied, it must be a message string, and will be logged directly. If two or more parameters are specified, the first parameter must be a format string, and the remaining parameters must be the variables to substitute into the format string, following the convention of the fmt.Sprintf(...) function.
func Errorc ¶
Errorc logs an error level message, including context information that is stored in the first parameter. If two parameters are supplied, the second must be a message string, and will be logged directly. If more than two parameters are supplied, the second parameter must be a format string, and the remaining parameters must be the variables to substitute into the format string, following the convention of the fmt.Sprintf(...) function.
func Errorf ¶
func Errorf(args ...interface{})
Errorf logs an error level message. If one parameter is supplied, it must be a message string, and will be logged directly. If two or more parameters are specified, the first parameter must be a format string, and the remaining parameters must be the variables to substitute into the format string, following the convention of the fmt.Sprintf(...) function.
func Infoc ¶
Infoc logs an infoLog level message, including context information that is stored in the first parameter. If two parameters are supplied, the second must be a message string, and will be logged directly. If more than two parameters are supplied, the second parameter must be a format string, and the remaining parameters must be the variables to substitute into the format string, following the convention of the fmt.Sprintf(...) function.
func Infof ¶
func Infof(args ...interface{})
Infof logs an infoLog level message. If one parameter is supplied, it must be a message string, and will be logged directly. If two or more parameters are specified, the first parameter must be a format string, and the remaining parameters must be the variables to substitute into the format string, following the convention of the fmt.Sprintf(...) function.
func NewJSONFileLogger ¶
NewJSONFileLogger - Create a new logger with a "file" filter configured to send JSON-formatted log messages at or above lvl to a file with the specified filename.
func WithRequestId ¶
WithRequestId adds a request id to the specified context. If the returned Context is subsequently passed to a logging method, the request id will automatically be included in the logged message
Types ¶
This section is empty.