defaultdriver

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ISO8601TimeEncoder

func ISO8601TimeEncoder(t time.Time) string

ISO8601TimeEncoder serializes a time.Time to an ISO8601-formatted string with millisecond precision.

func RFC3339NanoTimeEncoder

func RFC3339NanoTimeEncoder(t time.Time) string

RFC3339NanoTimeEncoder serializes a time.Time to an RFC3339-formatted string with nanosecond precision.

func RFC3339TimeEncoder

func RFC3339TimeEncoder(t time.Time) string

RFC3339TimeEncoder serializes a time.Time to an RFC3339-formatted string.

Types

type CallerInfo

type CallerInfo struct {
	FullFuncName string
	FuncName     string
	File         string
	Line         int
}

type DefaultDriver

type DefaultDriver struct {
	CallerSkip int
}

func (*DefaultDriver) GetLevel

func (d *DefaultDriver) GetLevel(logger string) core.Level

func (*DefaultDriver) Name

func (d *DefaultDriver) Name() string

func (*DefaultDriver) Print

func (d *DefaultDriver) Print(r *core.Record)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL