safelog

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

import "git.torproject.org/pluggable-transports/snowflake.git/v2/common/safelog"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scrub added in v2.2.0

func Scrub(b []byte) []byte

Types

type LogScrubber

type LogScrubber struct {
	Output io.Writer
	// contains filtered or unexported fields
}

An io.Writer that can be used as the output for a logger that first sanitizes logs and then writes to the provided io.Writer

func (*LogScrubber) Lock

func (ls *LogScrubber) Lock()

func (*LogScrubber) Unlock

func (ls *LogScrubber) Unlock()

func (*LogScrubber) Write

func (ls *LogScrubber) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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