logger

package
v0.99.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

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