Documentation ¶
Index ¶
Constants ¶
View Source
const ConvertJSONLogForConsole = false
View Source
const TimestampFormat = "2006-01-02T15:04:05.000000000Z07:00"
Variables ¶
View Source
var Defaults = Config{ NoColor: true, TimeFormat: TimestampFormat, FormatCaller: formatCaller, PartsOrder: []string{ logoutput.TimestampFieldName, logoutput.LevelFieldName, logoutput.MessageFieldName, logoutput.CallerFieldName, }, }
Functions ¶
func ConvertJSONTestingOutput ¶
func ConvertJSONTestingOutput(in logcommon.TestingLogger) logcommon.TestingLogger
Types ¶
type Config ¶
type Config struct { Enable bool // NoColor disables the colorized output. NoColor bool // TimeFormat specifies the format for timestamp in output. TimeFormat string // PartsOrder defines the order of parts in output. PartsOrder []string FormatTimestamp Formatter FormatLevel Formatter FormatCaller Formatter FormatMessage Formatter FormatFieldName Formatter FormatFieldValue Formatter FormatErrFieldName Formatter FormatErrFieldValue Formatter }
Click to show internal directories.
Click to hide internal directories.