logtail

package
v0.8.5-35-g3b6315f4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License.

Index

Constants

View Source
const (
	DefaultTailBufferSize = 4 * 1024
	DefaultTailPeekSize   = 1024
)

Variables

This section is empty.

Functions

func NewLogTail

func NewLogTail(ctx context.Context, logFile string) (chan string, chan error, error)

NewLogTail returns a string channel that receives new lines from tailing/following the supplied logFile. Errors can also occur while reading the file, which are propagated through the error channel. If a fatal error occurs during the initialization of this method, the last error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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