Discover Packages
github.com/AdguardTeam/AdGuardDNS
internal
optlog
package
Version:
v0.0.0-...-b6e3791
Opens a new window with list of versions in this module.
Published: Mar 11, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Debug1(msg, arg1)
Debug2(msg, arg1, arg2)
Debug3(msg, arg1, arg2, arg3)
Debug4(msg, arg1, arg2, arg3, arg4)
Error2(msg, arg1, arg2)
Types
Source Files
Documentation
Documentation
¶
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.
func Debug1[T1 any](msg string, arg1 T1)
func Debug2[T1, T2 any](msg string, arg1 T1, arg2 T2)
func Debug3[T1, T2, T3 any](msg string, arg1 T1, arg2 T2, arg3 T3)
func Debug4[T1, T2, T3, T4 any](msg string, arg1 T1, arg2 T2, arg3 T3, arg4 T4)
func Error2[T1, T2 any](msg string, arg1 T1, arg2 T2)
Debug1 is an ugly hack to prevent log.Debug from allocating.
func Debug2[T1, T2 any ](msg string , arg1 T1, arg2 T2)
Debug2 is an ugly hack to prevent log.Debug from allocating.
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[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[T1, T2 any ](msg string , arg1 T1, arg2 T2)
Error2 is an ugly hack to prevent log.Error from allocating.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.