Documentation ¶
Index ¶
- Constants
- func CtxLoggingEnabled() bool
- func SetLogLevel(logger Logger, level Level)
- func Sync()
- type Field
- func FieldAny(key string, val interface{}) Field
- func FieldBinary(key string, val []byte) Field
- func FieldBool(key string, val bool) Field
- func FieldBools(key string, vals []bool) Field
- func FieldByteString(key string, val []byte) Field
- func FieldByteStrings(key string, vals [][]byte) Field
- func FieldDuration(key string, val time.Duration) Field
- func FieldDurations(key string, vals []time.Duration) Field
- func FieldError(err error) Field
- func FieldErrors(key string, errs []error) Field
- func FieldFloat32(key string, val float32) Field
- func FieldFloat32s(key string, vals []float32) Field
- func FieldFloat64(key string, val float64) Field
- func FieldFloat64s(key string, vals []float64) Field
- func FieldInt(key string, val int) Field
- func FieldInt32(key string, val int32) Field
- func FieldInt64(key string, val int64) Field
- func FieldInt64s(key string, vals []int64) Field
- func FieldInts(key string, vals []int) Field
- func FieldNamedError(key string, err error) Field
- func FieldNamespace(key string) Field
- func FieldObject(key string, val interface{}) Field
- func FieldSkip() Field
- func FieldStack(key string) Field
- func FieldString(key string, val string) Field
- func FieldStringer(key string, val fmt.Stringer) Field
- func FieldStrings(key string, vals []string) Field
- func FieldTime(key string, val time.Time) Field
- func FieldTimes(key string, vals []time.Time) Field
- type Format
- type Level
- type Logger
- type StructuredLogger
Constants ¶
View Source
const ( EnvKeyLogCtx = "FLOGO_LOG_CTX" EnvKeyLogDateFormat = "FLOGO_LOG_DTFORMAT" DefaultLogDateFormat = "2006-01-02 15:04:05.000" EnvKeyLogLevel = "FLOGO_LOG_LEVEL" DefaultLogLevel = InfoLevel EnvKeyLogFormat = "FLOGO_LOG_FORMAT" DefaultLogFormat = FormatConsole EnvKeyLogSeparator = "FLOGO_LOG_SEPARATOR" DefaultLogSeparator = "\t" )
Variables ¶
This section is empty.
Functions ¶
func CtxLoggingEnabled ¶
func CtxLoggingEnabled() bool
func SetLogLevel ¶
Types ¶
type Field ¶
type Field = interface{}
func FieldBinary ¶
func FieldBools ¶
func FieldByteString ¶
func FieldByteStrings ¶
func FieldError ¶
func FieldErrors ¶
func FieldFloat32 ¶
func FieldFloat32s ¶
func FieldFloat64 ¶
func FieldFloat64s ¶
func FieldInt32 ¶
func FieldInt64 ¶
func FieldInt64s ¶
func FieldNamedError ¶
func FieldObject ¶
Object encodes object using reflection
func FieldStack ¶
func FieldString ¶
func FieldStrings ¶
type Logger ¶
type Logger interface { DebugEnabled() bool TraceEnabled() bool Trace(args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Tracef(template string, args ...interface{}) Debugf(template string, args ...interface{}) Infof(template string, args ...interface{}) Warnf(template string, args ...interface{}) Errorf(template string, args ...interface{}) Structured() StructuredLogger }
func ChildLogger ¶
func ChildLoggerWithFields ¶
func CreateLoggerFromRef ¶
func RootLogger ¶
func RootLogger() Logger
Click to show internal directories.
Click to hide internal directories.