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 ¶
LoadOutputPlugin loads a Output plugin from given plugin path, the plugin name is specificed to Output
func LoadParserPlugin ¶
LoadParserPlugin loads a parser plugin from given plugin path, the plugin name is specificed to Parser
func ReleaseInfo ¶ added in v1.1.0
ReleaseInfo get app's release related info
Types ¶
type LogtailTailer ¶
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
Click to show internal directories.
Click to hide internal directories.