log

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPath     = "./"
	LogName     = "modmlog"
	LogFileName = LogName + ".txt"
)

Variables

This section is empty.

Functions

func CallerFormattingFunc added in v1.3.1

func CallerFormattingFunc(frame *runtime.Frame) (function string, file string)

func ConfigureLogging

func ConfigureLogging(config *LoggingOptions)

Types

type FileHook

type FileHook struct {
	Formatter logrus.Formatter
	// contains filtered or unexported fields
}

func (*FileHook) Fire

func (hook *FileHook) Fire(entry *logrus.Entry) error

func (*FileHook) Levels

func (hook *FileHook) Levels() []logrus.Level

type InsightsConfig

type InsightsConfig struct {
	InstrumentationKey string

	Role    string
	Version string
}

type LoggingOptions

type LoggingOptions struct {
	FilePath        string
	DefaultLogLevel string
}

type StacktraceHook

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

func (*StacktraceHook) Fire

func (h *StacktraceHook) Fire(e *logrus.Entry) error

func (*StacktraceHook) Levels

func (h *StacktraceHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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