netxlogger

package
v0.0.0-...-bd88772 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package netxlogger is a logger for netx events.

This package is a fork of github.com/ooni/netx/x/logger where we applied ooni/probe-engine specific customisations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is a handler that logs events.

func NewHandler

func NewHandler(logger Logger) *Handler

NewHandler returns a new logging handler.

func (*Handler) OnMeasurement

func (h *Handler) OnMeasurement(m modelx.Measurement)

OnMeasurement logs the specific measurement

type Logger

type Logger interface {
	Debug(msg string)
	Debugf(format string, v ...interface{})
}

Logger is the interface we expect from a logger

Jump to

Keyboard shortcuts

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