datalog

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLogger

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

func New

func New(filePath string, flag int) *DataLogger

New creates a new instance of the logger

func (*DataLogger) Append

func (dl *DataLogger) Append(msgs ...Message) error

Append adds a new line to the file, if there is no headline written yet, it will be written first. If the flag is !=0 (e.g. "log.LstdFlags"), a preceding time stamp will be added before each line.

type Message

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

func NewMessage

func NewMessage(h, v string) Message

NewMessage creates a new message object from given headline and value

Jump to

Keyboard shortcuts

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