log

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarLogLevel = "DD_APPSEC_WAF_LOG_LEVEL"

Variables

This section is empty.

Functions

func CallbackFunctionPointer

func CallbackFunctionPointer() uintptr

CallbackFunctionPointer returns a pointer to the log callback function which can be used with libddwaf.

Types

type Level

type Level int

Level replicates the definition of `DDWAF_LOG_LEVEL` from `ddwaf.h`.

const (
	LevelTrace Level = iota
	LevelDebug
	LevelInfo
	LevelWarning
	LevelError
	LevelOff
)

func LevelNamed

func LevelNamed(name string) Level

LevelNamed returns the log level corresponding to the given name, or LevelOff if the name corresponds to no known log level.

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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