logging

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DividerThick added in v1.0.10

func DividerThick()

DividerThick prints a divider line made of `=` characters to help with the readability of logs

func DividerThin added in v1.0.10

func DividerThin()

DividerThin prints a divider line made of `-` characters to help with the readability of logs

func InitLog

func InitLog(config Config) (err error)

InitLog initializes TTPForge global logger

func L added in v1.0.2

func L() *zap.SugaredLogger

L returns the global logger for ttpforge

Types

type Config added in v1.0.2

type Config struct {
	Verbose    bool
	LogFile    string
	NoColor    bool
	Stacktrace bool
}

Config contains various formatting options for the global logger

Jump to

Keyboard shortcuts

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