defaultdriver

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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