exportlogs

package
v0.73.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportResponse

type ExportResponse struct {
	Error string
	Logs  []Log
}

ExportResponse contains all available logs

func ExportFromBaseFile

func ExportFromBaseFile(logFile string) ExportResponse

ExportFromBaseFile reads log file and returns its content with some meta. In future can be extended to dump rotated logs.

type Log

type Log struct {
	Filename   string
	Content    string
	Compressed bool
}

Log contains actual log content and filename. If content is gzipped Compressed will be set to true.

Jump to

Keyboard shortcuts

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