drain

package
v0.0.0-...-5584500 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Copyright (c) 2015 Pagoda Box Inc

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptLogger

func AdaptLogger(logger logtap.Logger) logtap.Drain

func AdaptPublisher

func AdaptPublisher(publisher Publisher) logtap.Drain

func AdaptWriter

func AdaptWriter(writer io.Writer) logtap.Drain

func Filter

func Filter(drain logtap.Drain, level int) logtap.Drain

Types

type Publisher

type Publisher interface {
	Publish(tag []string, data string) error
}

Jump to

Keyboard shortcuts

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