Documentation
¶
Index ¶
Constants ¶
View Source
const (
ISO = "2006-01-02T15:04:05.999Z"
)
View Source
const RESET = "\x1B[0m"
Variables ¶
View Source
var ( Red = Style{/* contains filtered or unexported fields */} Green = Style{/* contains filtered or unexported fields */} Yellow = Style{/* contains filtered or unexported fields */} Blue = Style{/* contains filtered or unexported fields */} Purple = Style{/* contains filtered or unexported fields */} )
View Source
var JSON = FormatEvent(jsonEvent)
Functions ¶
func GoRoutineID ¶
func GoRoutineID() string
func SupportsAnsi ¶
Types ¶
type Format ¶
type Format struct { Format FormatEvent DisplayGoroutineId bool }
func (Format) FormatEvent ¶
func (f Format) FormatEvent(w *SyncWriter, event logger.Record) error
type FormatEvent ¶
type FormatEvent = func(Format, *SyncWriter, logger.Record) error
type SyncWriter ¶
type SyncWriter struct {
// contains filtered or unexported fields
}
func NewSyncWriter ¶
func NewSyncWriter(w io.Writer) *SyncWriter
func (*SyncWriter) HasAnsiSupport ¶
func (w *SyncWriter) HasAnsiSupport() bool
Click to show internal directories.
Click to hide internal directories.