gelfoutput

package module
v0.0.0-...-c0553aa Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package gelfoutput provides GELF output implementation of xlog.Output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GelfOutput

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

GelfOutput implements xlog.Output for GELF output.

func New

func New(opts Options) (g *GelfOutput, err error)

New creates a new GelfOutput.

func (*GelfOutput) Close

func (g *GelfOutput) Close() error

Close closes GelfOutput. Unused GelfOutput must be closed for freeing resources.

func (*GelfOutput) Log

func (g *GelfOutput) Log(log *xlog.Log)

Log is implementation of xlog.Output.

type Options

type Options struct {
	Address  string
	UseTCP   bool
	Host     string
	Facility string
}

Options defines several GELF options.

Jump to

Keyboard shortcuts

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