logger

package
v0.0.0-...-d69b078 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReaction

func NewReaction() engine.Reaction

NewReaction returns a new logger Reaction object

func RegisterConfigDecoder

func RegisterConfigDecoder()

RegisterConfigDecoder with the engine.

func RegisterReaction

func RegisterReaction()

RegisterReaction returns the module name

Types

type Config

type Config struct {
	Location string `toml:"location" version:"1"`
}

Config object for logger

func NewConfig

func NewConfig() *Config

NewConfig returns a logger config with defaults

func (*Config) Hash

func (c *Config) Hash() string

Hash returns the unique hash for this config object

func (*Config) Target

func (c *Config) Target() *engine.NameSpace

Target returns the namespace of the target of this config

func (*Config) Version

func (c *Config) Version() int

Version ...

type ConfigDecoder

type ConfigDecoder struct{}

ConfigDecoder ...

func (*ConfigDecoder) DecodeConfig

func (cd *ConfigDecoder) DecodeConfig(data interface{}) (engine.Config, error)

DecodeConfig returns a parsed config object

type Logger

type Logger struct {
	Config *Config
}

Logger object

func (*Logger) Command

func (l *Logger) Command(cmd *engine.Command) error

Command takes a Command object, and logs it

func (*Logger) Setup

func (l *Logger) Setup(eng *engine.Engine, cfg engine.Config) error

Setup ...

func (*Logger) Start

func (l *Logger) Start() error

Start the logger service

func (*Logger) Stop

func (l *Logger) Stop() error

Stop the logger service

Jump to

Keyboard shortcuts

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