miniflux-cligit.sr.ht/~xn/miniflux-cli/logger Index | Files

package logger

import "git.sr.ht/~xn/miniflux-cli/logger"

Index

Functions

func GetPath

func GetPath(app string) (string, error)

GetPath to logs dir

Types

type Logger

type Logger struct {
	Path string
	// contains filtered or unexported fields
}

Logger definition

func New

func New(app string) (*Logger, error)

New logger

func (*Logger) Close

func (l *Logger) Close() error

Close log file

func (*Logger) Println

func (l *Logger) Println(message string) error

Println - prints line to STDOUT and writes it to logfile

func (*Logger) Writeln

func (l *Logger) Writeln(message string) error

Writeln - write line in log file

Source Files

logger.go

Version
v0.99.3 (latest)
Published
Apr 29, 2021
Platform
linux/amd64
Imports
3 packages
Last checked
1 week ago

Tools for package owners.