log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

------------------------------------------------------------ Copyright (c) Microsoft Corporation. Licensed under the MIT License. ------------------------------------------------------------

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Level     string `json:"level"`
	Timestamp int64  `json:"timestamp"`
	Container string `json:"container"`
	Content   string `json:"content"`
}

Log represents a log message with metadata

type Reader

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

Reader reads logs line by line.

func NewReader

func NewReader(container string, reader *bufio.Reader) *Reader

NewReader creates a reader that parses logs.

func (*Reader) ReadLog

func (r *Reader) ReadLog() (*Log, error)

ReadLog reads a new log entry

Jump to

Keyboard shortcuts

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