syncd: github.com/dreamans/syncd/util/golog Index | Files

package golog

import "github.com/dreamans/syncd/util/golog"

Index

Package Files

file.go log.go

Constants

const (
    LEVEL_DEBUG = iota
    LEVEL_INFO
    LEVEL_NOTICE
    LEVEL_WARNING
    LEVEL_ERROR
    LEVEL_PANIC
)

func Debug Uses

func Debug(s string, v ...interface{})

func Error Uses

func Error(s string, v ...interface{})

func Info Uses

func Info(s string, v ...interface{})

func Notice Uses

func Notice(s string, v ...interface{})

func Panic Uses

func Panic(s string, v ...interface{})

func SetOutput Uses

func SetOutput(w io.Writer)

func Warning Uses

func Warning(s string, v ...interface{})

type FileHandler Uses

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

func NewFileHandler Uses

func NewFileHandler(path string) *FileHandler

func (*FileHandler) Close Uses

func (f *FileHandler) Close() error

func (*FileHandler) Write Uses

func (f *FileHandler) Write(p []byte) (n int, err error)

type Logger Uses

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

func New Uses

func New(out io.Writer) *Logger

func (*Logger) Debug Uses

func (l *Logger) Debug(s string, v ...interface{})

func (*Logger) Error Uses

func (l *Logger) Error(s string, v ...interface{})

func (*Logger) GetOutput Uses

func (l *Logger) GetOutput() io.Writer

func (*Logger) Info Uses

func (l *Logger) Info(s string, v ...interface{})

func (*Logger) Notice Uses

func (l *Logger) Notice(s string, v ...interface{})

func (*Logger) Output Uses

func (l *Logger) Output(level int, s string) error

func (*Logger) Panic Uses

func (l *Logger) Panic(s string, v ...interface{})

func (*Logger) SetOutput Uses

func (l *Logger) SetOutput(w io.Writer)

func (*Logger) Warning Uses

func (l *Logger) Warning(s string, v ...interface{})

Package golog imports 7 packages (graph) and is imported by 2 packages. Updated 2019-03-30. Refresh now. Tools for package owners.