Documentation
¶
Index ¶
- Variables
- func AttachTUIHook(hook *TUIHook) error
- func Debug(msg string, fields ...zap.Field)
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func DetachTUIHook()
- func Error(msg string, fields ...zap.Field)
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Info(msg string, fields ...zap.Field)
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func NewLogger() (*zap.Logger, error)
- func PrintStartupBanner(version, commit, date string)
- func Sync() error
- func Warn(msg string, fields ...zap.Field)
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type LogEntry
- type TUIHook
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
View Source
var Sugar *zap.SugaredLogger
Functions ¶
func AttachTUIHook ¶ added in v0.0.12
AttachTUIHook attaches a hook for TUI log display
func DetachTUIHook ¶ added in v0.0.12
func DetachTUIHook()
DetachTUIHook removes the TUI hook and restores normal logging
func Infof ¶
func Infof(template string, args ...interface{})
SugaredLogger functions (more convenient, less performance critical)
func PrintStartupBanner ¶ added in v0.0.12
func PrintStartupBanner(version, commit, date string)
PrintStartupBanner prints the Constellation Overwatch ASCII banner in NATS style
Types ¶
type TUIHook ¶ added in v0.0.12
type TUIHook struct {
// contains filtered or unexported fields
}
TUIHook captures log entries for the TUI display
func GetTUIHook ¶ added in v0.0.12
func GetTUIHook() *TUIHook
GetTUIHook returns the current TUI hook if attached
func NewTUIHook ¶ added in v0.0.12
NewTUIHook creates a new TUI log hook with the specified buffer size
Click to show internal directories.
Click to hide internal directories.