chainLog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package chainLog is the implementation for the logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLog

type CLog struct {
	*csv.Writer
	// contains filtered or unexported fields
}

CLog is the representation of the CSV file that results in the chained log

func New

func New(filepath, difficulty string) (*CLog, error)

New opens or creates the given file and starts a chained log

func (*CLog) Add

func (l *CLog) Add(msg string) error

Add will other packages to add entries to row

func (*CLog) Close

func (l *CLog) Close() error

Close will ensure log and file are flushed and closed

Jump to

Keyboard shortcuts

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