actlogger

package module
v0.0.0-...-60b4a25 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 4 Imported by: 0

README

actlogger

acttradre golang logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActLogger

type ActLogger struct {
	*zerolog.Logger
}

func Configure

func Configure(config Config) *ActLogger

Configure sets up the logging framework

type Config

type Config struct {
	Application string
	Filepath    string
	MaxSize     int  // MaxSize the max size in MB of the logfile before it's rolled
	MaxBackups  int  // MaxBackups the max number of rolled files to keep
	MaxAge      int  // MaxAge the max age in days to keep a logfile
	DebugLevel  bool // DebugLevel bool
	Compress    bool // Compress logs archive
	StdOut      bool // stdout & stderr
}

Jump to

Keyboard shortcuts

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