neosynclogger

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler() slog.Handler

Returns either JSON or TEXT depending on the environment variable LOGS_FORMAT_JSON Defaults to JSON

func NewJsonLogHandler

func NewJsonLogHandler() *slog.JSONHandler

func NewJsonLogLogger

func NewJsonLogLogger() *log.Logger

func NewJsonSLogger

func NewJsonSLogger() *slog.Logger

func NewLoggers

func NewLoggers() (slogger *slog.Logger, loglogger *log.Logger)

func NewTextLogHandler

func NewTextLogHandler() *slog.TextHandler

func ShouldFormatAsJson

func ShouldFormatAsJson() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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