manager

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package manager implements the processing manager for log entries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(e *core.Entry) ([]byte, error)
}

Formatter é o contrato já existente no seu logger.

type Manager

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

Entry aqui é o seu tipo concreto. No seu código, você tem *Entry, então sigo essa linha.

func (*Manager) IsTerminal

func (m *Manager) IsTerminal() bool

IsTerminal verifica se o manager está em estado terminal (done ou failed).

func (*Manager) Process

func (m *Manager) Process(ctx context.Context, entry *core.Entry) error

Process é o pipeline principal para ENTRIES saudáveis/sóbrios. Logger NÃO faz mais formatação, hooks, write — só chama isso aqui.

Directories

Path Synopsis
Package control provides atomic flag registries and helpers for job state and security flags.
Package control provides atomic flag registries and helpers for job state and security flags.

Jump to

Keyboard shortcuts

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