log

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package log configures the leveled logging used throughout Pact Go. It filters the standard library's log output by level (TRACE, DEBUG, INFO, WARN, ERROR), defaulting to INFO, or to the PACT_LOG_LEVEL or LOG_LEVEL environment variable if set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel

func LogLevel() logutils.LogLevel

LogLevel gets the current log level for the Pact framework.

func PactCrash

func PactCrash(err error)

PactCrash panics with err wrapped in a crash report asking the caller to open a bug report against Pact Go, for use where Pact Go cannot recover.

func SetLogLevel

func SetLogLevel(level logutils.LogLevel) error

SetLogLevel sets the default log level for the Pact framework.

Types

This section is empty.

Jump to

Keyboard shortcuts

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