slog

package module
v0.0.0-...-82662e5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(calldepth int, logLevel level.Type, values ...interface{})
	Debug(values ...interface{})
	Info(values ...interface{})
	Warn(values ...interface{})
	Error(values ...interface{})
	Fatal(values ...interface{})
	Panic(values ...interface{})
}

Logger interface type

func New

func New(out io.Writer, flag int) Logger

New logger service

type Slog

type Slog struct {
	// contains filtered or unexported fields
}

Slog struct type

func (*Slog) Debug

func (s *Slog) Debug(values ...interface{})

Debug logger

func (*Slog) Error

func (s *Slog) Error(values ...interface{})

Error logger

func (*Slog) Fatal

func (s *Slog) Fatal(values ...interface{})

Fatal logger

func (*Slog) Info

func (s *Slog) Info(values ...interface{})

Info logger

func (*Slog) Log

func (s *Slog) Log(calldepth int, logLevel level.Type, values ...interface{})

Log logger

func (*Slog) Panic

func (s *Slog) Panic(values ...interface{})

Panic logger

func (*Slog) Warn

func (s *Slog) Warn(values ...interface{})

Warn logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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