package
2.6.0
Repository: https://github.com/wind-c/comqtt.git
Documentation: pkg.go.dev

# Functions

Debug logs a debug message with optional arguments.
Default returns the default logger instance.
Options defines configuration options for the logger.
Error logs an error message with optional arguments.
Fatal logs a fatal error message with optional arguments and exits the program.
Info logs an informational message with optional arguments.
Init initializes the logger with the provided options.
Log logs a message with the specified log level and optional arguments.
New creates a new Logger based on the provided options.
NewHandler creates a new handler based on the provided options and writer.
Warn logs a warning message with optional arguments.
Writer returns the writer associated with the logger.

# Constants

Log format is JSON.
Log format is TEXT.
Log output is Console and File.
Log output is Console.
Log output is File.

# Structs

Handler is a wrapper for slog.Handler.
Logger is a wrapper for slog.Logger.
Options defines configuration options for the logger.

# Type aliases

Format represents the log format type.
Output represents the log output type.