Versions in this module Expand all Collapse all v0 v0.0.2 Jan 19, 2025 v0.0.1 Dec 8, 2024 Changes in this version + const Debug + const Deprecation + const Error + const Info + const Invalid + const LogPartSeparator + const Warning + var InvalidLogStatus = errors.New("Invalid log status.") + var LogFileMalformed = errors.New("Log line malformed.") + var LogFileNotSpecified = errors.New("The log file was not specified.") + var NoLogObj = errors.New("No object present.") + var NoLogStatus = errors.New("No log status present.") + var NoLogTime = errors.New("No log time present.") + func JoinLogByTimeInc[T any, U any](left LogEntry[T], right LogEntry[U]) bool + func NewOptions() *options + type LogEntry struct + Message string + Status LogStatus + Time time.Time + Val T + type LogStatus int + func LogStatusFromString(s string) (LogStatus, error) + func (l LogStatus) String() string + type ValueLogger struct + Log func(val T, fmt string, vals ...any) + func NewBlankLog[T any]() ValueLogger[T] + func NewValueLogger[T any](status LogStatus, file string, opts *options) (ValueLogger[T], error) + func (l *ValueLogger[T]) Clear() error + func (l *ValueLogger[T]) Close() + func (l *ValueLogger[T]) LogElems() iter.Iter[LogEntry[T]] + func (l *ValueLogger[T]) SetStatus(s LogStatus)