log

package
v0.3.2-0...-6117ab2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DitLog []string

DitLog Object

View Source
var DitLogEntryCount int

DitLogEntryCount contains the amount of log entries that we have

Functions

func AddCommand

func AddCommand(command string) error

AddCommand prepares a new log entry by inserting the command

func AddToLog

func AddToLog(logContent string) error

AddToLog adds new line(s) to the current log entry

func FinalizeEntry

func FinalizeEntry() error

FinalizeEntry will add an entry to the logfile until it has reached the maximum (then old ones will be shuffled out)

func GetRawLog

func GetRawLog() ([]byte, error)

GetRawLog func

func Load

func Load() error

Load will load the log and set it to the exported variable "DitLog"

func RemoveLastLine

func RemoveLastLine(_before string)

RemoveLastLine will remove the last log entry due to confidentiality reasons

func Save

func Save() error

Save will write the current log object to the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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