optlog

package
v0.0.0-...-b6e3791 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package optlog contains ugly hacks to make debug logs allocate less when debug mode is not enabled. Add all such hacks here to make sure that we keep track of them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug1

func Debug1[T1 any](msg string, arg1 T1)

Debug1 is an ugly hack to prevent log.Debug from allocating.

func Debug2

func Debug2[T1, T2 any](msg string, arg1 T1, arg2 T2)

Debug2 is an ugly hack to prevent log.Debug from allocating.

func Debug3

func Debug3[T1, T2, T3 any](msg string, arg1 T1, arg2 T2, arg3 T3)

Debug3 is an ugly hack to prevent log.Debug from allocating.

func Debug4

func Debug4[T1, T2, T3, T4 any](msg string, arg1 T1, arg2 T2, arg3 T3, arg4 T4)

Debug4 is an ugly hack to prevent log.Debug from allocating.

func Error2

func Error2[T1, T2 any](msg string, arg1 T1, arg2 T2)

Error2 is an ugly hack to prevent log.Error from allocating.

Types

This section is empty.

Jump to

Keyboard shortcuts

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