logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLogger

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

func (FileLogger) Log

func (f FileLogger) Log(message seras.Message) error

type Logger

type Logger interface {
	Log(message seras.Message) error
}

Logger is meant for logging all incoming and outgoing Messages on a per-connection basis. There is a default null, file option, and ElasticSearch drivers available.

type Mod

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

func New

func New(logger Logger) *Mod

func (*Mod) Name

func (mod *Mod) Name() string

func (*Mod) Start

func (mod *Mod) Start(stream seras.Stream, actions seras.Actions) error

func (*Mod) Stop

func (mod *Mod) Stop()

type ModFactory

type ModFactory struct {
	DefaultLogger Logger
}

func (ModFactory) Create

func (m ModFactory) Create(logger interface{}) (seras.Module, error)

type NullLogger

type NullLogger struct {
}

func (NullLogger) Log

func (n NullLogger) Log(message seras.Message) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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