logging

package
v0.0.0-...-3fb6fb6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppenderType

type AppenderType string

AppenderType identifies nature of logs

const (
	Console AppenderType = "console"
	File    AppenderType = "file"
)

type ConsoleBasedConf

type ConsoleBasedConf struct {
	EnableDebug bool `json:"enable_debug"`
}

type DMuxLogging

type DMuxLogging struct {
	EnableDebug bool `json:"enable_debug"`
}

DMuxLogging logging

func (*DMuxLogging) Start

func (c *DMuxLogging) Start(logConf LogConf)

Start starting logging

type FileBasedConf

type FileBasedConf struct {
	Path        string     `json:"path"`
	EnableDebug bool       `json:"enable_debug"`
	Rotate      RotateConf `json:"rotation"`
}

type LogConf

type LogConf struct {
	Type   AppenderType `json:"type"`
	Config interface{}  `json:"config"`
}

LogConf holds logging configuration

type RotateConf

type RotateConf struct {
	FileSize     int  `json:"size_in_mb"`
	RotationDays int  `json:"retention_days"`
	NoOfFiles    int  `json:"retention_count"`
	Compress     bool `json:"compress"`
}

RotateConf holds logging Rotation configuration

Jump to

Keyboard shortcuts

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