logs

package
v0.0.0-...-23ad5da Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Service *types.Service = &types.Service{
	"logs",
	getCmds(),
	initService,
}

Functions

func Event

func Event(event *types.Event)

func Init

func Init(conf *types.Conf, state *types.State) *terr.Trace

func New

func New(event *types.Event)

Types

type CentHook

type CentHook struct {
	Cli      *centcom.Cli
	LogChans map[string]string
	EmitChan string
	Domain   string
}

func NewCentHook

func NewCentHook(cli *centcom.Cli, logChans map[string]string, channel string, domain string) *CentHook

func (*CentHook) Fire

func (hook *CentHook) Fire(entry *log.Entry) error

func (*CentHook) Levels

func (hook *CentHook) Levels() []log.Level

type RedisHook

type RedisHook struct {
	Host string
	Port int
	Db   int
}

func (*RedisHook) Fire

func (hook *RedisHook) Fire(entry *log.Entry) error

func (*RedisHook) Levels

func (hook *RedisHook) Levels() []log.Level

Jump to

Keyboard shortcuts

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