logster

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLogtailPath = "/usr/sbin/logtail2"

DefaultLogtailPath is the default path to logtail2 binary

Variables

View Source
var (
	ReleaseVersion = "None"
	BuildTS        = "None"
	GitHash        = "None"
	GitBranch      = "None"
	GoVersion      = "None"
)

Version information.

Functions

func LoadOutputPlugin

func LoadOutputPlugin(pluginPath string) (inter.Output, error)

LoadOutputPlugin loads a Output plugin from given plugin path, the plugin name is specificed to Output

func LoadParserPlugin

func LoadParserPlugin(pluginPath string) (inter.Parser, error)

LoadParserPlugin loads a parser plugin from given plugin path, the plugin name is specificed to Parser

func ReleaseInfo added in v1.1.0

func ReleaseInfo(binName string) string

ReleaseInfo get app's release related info

Types

type LogtailTailer

type LogtailTailer struct {
	Binary    string
	Logfile   string
	Statefile string
}

LogtailTailer holds running parameters of logtail2

func (*LogtailTailer) CreateStateFile

func (tailer *LogtailTailer) CreateStateFile() error

CreateStateFile creates the state file of LogtailTailer

func (*LogtailTailer) ReadLines

func (tailer *LogtailTailer) ReadLines(c chan string) error

ReadLines reads lines via logtail and sends data to the given chan line by line

Jump to

Keyboard shortcuts

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