config

package
v0.0.0-...-4f526d7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: MIT Imports: 5 Imported by: 0

README

About config

Package config is for interfacing with log15-config.

Usage

Just add to your imports:

_ "github.com/gernoteger/log15-config"

Be careful that the package with this import is also init'ed during execution, otherwise your configs won't resolve!

Documentation

Overview

Package config helps to add the gelf writer to log15-config

Index

Constants

This section is empty.

Variables

View Source
var HandlerConfigType = reflect.TypeOf((*config.HandlerConfig)(nil)).Elem()

use for registry functions

Functions

func NewGelfConfig

func NewGelfConfig() interface{}

func Register

func Register()

registers all handlers

Types

type GelfConfig

type GelfConfig struct {
	config.LevelHandlerConfig `mapstructure:",squash"`
	Address                   string
}

func (*GelfConfig) NewHandler

func (c *GelfConfig) NewHandler() (log15.Handler, error)

Jump to

Keyboard shortcuts

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