log

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

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Custom logger for gotrace

Index

Constants

This section is empty.

Variables

View Source
var (
	L *log.Logger

	Enable atomic.Bool
)

counter to mark each call so that entry and exit points can be correlated

Functions

func DecreaseIndent

func DecreaseIndent()

func Format

func Format(args ...interface{}) string

Format N number of arguments for logging, and limit the length of each formatted arg.

func GetPidPpid

func GetPidPpid() (int, int)

Return process id and parent process id

func GetRoutineIds

func GetRoutineIds() (currentId int64, parrentId uint64)

Return current and parent goroutine id in string format

func IncreaseAndGetIndent

func IncreaseAndGetIndent() string

func Now

func Now() time.Time

func Setup

func Setup(output, prefix string, size int, enableByDefault bool, toggleSignalNum int) int

Setup our logger return a value so this van be executed in a toplevel var statement

func Since

func Since(t time.Time) time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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