istio: istio.io/istio/mixer/adapter/solarwinds/internal/papertrail Index | Files

package papertrail

import "istio.io/istio/mixer/adapter/solarwinds/internal/papertrail"

Index

Package Files

papertrail_logger.go

type Logger Uses

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

Logger is a concrete type of LoggerInterface which collects and ships logs to Papertrail

func (*Logger) Close Uses

func (p *Logger) Close() error

Close - closes the Logger instance

func (*Logger) Log Uses

func (p *Logger) Log(msg *logentry.Instance) error

Log method receives log messages

type LoggerInterface Uses

type LoggerInterface interface {
    Log(*logentry.Instance) error
    Close() error
}

LoggerInterface is the interface for all Papertrail logger types

func NewLogger Uses

func NewLogger(paperTrailURL string, retention time.Duration, logConfigs map[string]*config.Params_LogInfo,
    env adapter.Env) (LoggerInterface, error)

NewLogger does some ground work and returns an instance of LoggerInterface

Package papertrail imports 14 packages (graph) and is imported by 2 packages. Updated 2019-06-12. Refresh now. Tools for package owners.