apex

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package apex adapts xlog to github.com/apex/log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSinkHandler

func NewSinkHandler(l *xlog.Logger) apexlog.Handler

NewSinkHandler wraps an xlog.Logger as an apex log.Handler.

l := &apexlog.Logger{Handler: apexadapter.NewSinkHandler(xl), Level: apexlog.DebugLevel}

Types

type Core

type Core struct {
	// contains filtered or unexported fields
}

func New

func New(l *apexlog.Logger) *Core

func (*Core) Enabled

func (c *Core) Enabled(level core.Level) bool

func (*Core) Sync

func (c *Core) Sync() error

func (*Core) With

func (c *Core) With(fields []field.Field) core.Core

func (*Core) Write

func (c *Core) Write(event core.Event) error

Jump to

Keyboard shortcuts

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