logging

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug logs a debug message

func Error

func Error(format string, v ...interface{})

Error logs an error message

func Fatal

func Fatal(format string, v ...interface{})

Fatal logs a fatal message and exits

func GetLogger

func GetLogger() *zerolog.Logger

GetLogger returns the global zerolog logger for advanced usage

func Info

func Info(format string, v ...interface{})

Info logs an info message

func Initialize

func Initialize(level int, output io.Writer)

Initialize initializes the global logger with the specified log level and output writer

func SetStdioMode

func SetStdioMode(enabled bool)

SetStdioMode enables or disables stdio mode In stdio mode, all logs are suppressed to avoid interfering with MCP protocol

func Warn

func Warn(format string, v ...interface{})

Warn logs a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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