logger

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatLogger

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

func NewChatLogger

func NewChatLogger(logDir string, logFormat string, console io.Writer, showMetrics bool) (*ChatLogger, error)

func (*ChatLogger) Close

func (l *ChatLogger) Close()

func (*ChatLogger) LogError

func (l *ChatLogger) LogError(agentName string, err error)

func (*ChatLogger) LogMessage

func (l *ChatLogger) LogMessage(msg agent.Message)

func (*ChatLogger) LogSystem

func (l *ChatLogger) LogSystem(message string)

func (*ChatLogger) SetJSONEmitter added in v0.5.4

func (l *ChatLogger) SetJSONEmitter(emitter *bridge.StdoutEmitter)

SetJSONEmitter sets the JSON emitter for JSON-only output mode

Jump to

Keyboard shortcuts

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