logit

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT, MIT Imports: 5 Imported by: 2

README

Logit

Logger created in Golang. Runs as a separate goroutine.

This is a forked version of Logit specifically for Aeridya

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeFormat string
)

Functions

func Error

func Error(stat Status, call string, m string) *errors

func Errorf

func Errorf(stat Status, call string, format string, a ...interface{}) *errors

func Log

func Log(e Status, a ...string)

func LogError

func LogError(o Status, e error)

func Logf

func Logf(e Status, format string, a ...interface{})

func OpenFile

func OpenFile(f string) (io.WriteCloser, error)

func Quit

func Quit()

func Start

func Start(f io.WriteCloser) error

func TermLog

func TermLog() io.WriteCloser

Types

type Status

type Status int
const (
	MSG Status = iota
	WARN
	DEBUG
	NOTICE
	ERROR
	PANIC
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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