logx

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logx provides a structured logger for CodexSentinel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(dev bool) error

Init initializes the global logger. Use `dev=true` for human-readable console logs with colors.

func L

func L() *zap.SugaredLogger

L returns the global structured logger.

You must call logx.Init() before using this.

func Sync

func Sync()

Sync flushes the logger buffer before exiting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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