log

package
v0.30.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) (*slog.Logger, error)

Types

type AllowedFile

type AllowedFile struct {
	// contains filtered or unexported fields
}

AllowedFile is a settable identifier for the output file that the logger can have.

func (*AllowedFile) Set

func (f *AllowedFile) Set(s string) error

Set updates the value of the allowed format.

func (*AllowedFile) String

func (f *AllowedFile) String() string

type Config

type Config struct {
	*promslog.Config

	File *AllowedFile
}

Config is a struct containing configurable settings for the logger.

Directories

Path Synopsis
Package eventlog provides a Logger that writes to Windows Event Log.
Package eventlog provides a Logger that writes to Windows Event Log.

Jump to

Keyboard shortcuts

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