package logging
import "github.com/hashicorp/vault/sdk/helper/logging"
Index ¶
- func NewVaultLogger(level log.Level) log.Logger
- func NewVaultLoggerWithWriter(w io.Writer, level log.Level) log.Logger
- type LogFormat
Functions ¶
func NewVaultLogger ¶
NewVaultLogger creates a new logger with the specified level and a Vault formatter
func NewVaultLoggerWithWriter ¶
NewVaultLoggerWithWriter creates a new logger with the specified level and writer and a Vault formatter
Types ¶
type LogFormat ¶
type LogFormat int
func ParseEnvLogFormat ¶
func ParseEnvLogFormat() LogFormat
ParseEnvLogFormat parses the log format from an environment variable.
func ParseLogFormat ¶
ParseLogFormat parses the log format from the provided string.
func (LogFormat) String ¶
Stringer implementation
Source Files ¶
- Version
- v0.18.0 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.