qbsllm

package module
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 7 Imported by: 3

README

qbsllm – Slim Logging with Go

Build Status codecov Go Report Card GoDoc

import "git.fractalqb.de/fractalqb/qbsllm"


This is a logging library that brings together

to make a logging library that can coexists peacefully with other logging libraries.

Dependencies

Dependency Graph

Documentation

Index

Constants

View Source
const (
	FsrcLoc  = qblog.FsrcLoc
	FsrcPath = qblog.FsrcPath
)

Variables

This section is empty.

Functions

func Err

func Err(err error) qblog.ErrMsg

func Fmt

func Fmt(format string, a ...interface{}) qblog.FmtMsg

func NewConfig added in v0.10.0

func NewConfig(log *Logger) c4hgol.Configurer

Types

type Formatter

type Formatter = qblog.Formatter

type Level

type Level = qblog.Level
const (
	LmostIrrelevant Level = qblog.LmostIrrelevant
	Lnormal         Level = qblog.Lnormal
	LmostImportant  Level = qblog.LmostImportant
	Loff            Level = qblog.Loff

	Lpanic Level = qblog.Lpanic
	Lfatal Level = qblog.Lfatal

	Ltrace Level = qblog.Ltrace
	Ldebug Level = qblog.Ldebug
	Linfo  Level = qblog.Linfo
	Lwarn  Level = qblog.Lwarn
	Lerror Level = qblog.Lerror
)

type Logger

type Logger struct {
	qblog.Logger
	SllmDeco func(sllm.ParamWriter) sllm.ParamWriter
}

func New

func New(level Level, title string, wr io.Writer, fmt Formatter) *Logger

func (*Logger) Args

func (l *Logger) Args(level Level, tmpl string, args ...interface{})

func (*Logger) Debuga

func (l *Logger) Debuga(tmpl string, args ...interface{})

func (*Logger) Debuge

func (l *Logger) Debuge(err error)

func (*Logger) Debugf

func (l *Logger) Debugf(format string, a ...interface{})

func (*Logger) Debugm

func (l *Logger) Debugm(tmpl string, args sllm.ArgMap)

func (*Logger) Debugs

func (l *Logger) Debugs(msg string)

func (*Logger) Err

func (l *Logger) Err(level Level, err error) error

func (*Logger) Errora

func (l *Logger) Errora(tmpl string, args ...interface{})

func (*Logger) Errore

func (l *Logger) Errore(err error)

func (*Logger) Errorf

func (l *Logger) Errorf(format string, a ...interface{})

func (*Logger) Errorm

func (l *Logger) Errorm(tmpl string, args sllm.ArgMap)

func (*Logger) Errors

func (l *Logger) Errors(msg string)

func (*Logger) Fatala

func (l *Logger) Fatala(tmpl string, args ...interface{})

func (*Logger) Fatale

func (l *Logger) Fatale(err error)

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, a ...interface{})

func (*Logger) Fatalm

func (l *Logger) Fatalm(tmpl string, args sllm.ArgMap)

func (*Logger) Fatals

func (l *Logger) Fatals(msg string)

func (*Logger) Fmt

func (l *Logger) Fmt(level Level, format string, a ...interface{})

func (*Logger) Get

func (l *Logger) Get() *errLogger

Get returns a variant of Logger that only supports the Error* methods to log errors. The new variants return the message part of the log entry as an error object.

func (*Logger) Infoa

func (l *Logger) Infoa(tmpl string, args ...interface{})

func (*Logger) Infoe

func (l *Logger) Infoe(err error)

func (*Logger) Infof

func (l *Logger) Infof(format string, a ...interface{})

func (*Logger) Infom

func (l *Logger) Infom(tmpl string, args sllm.ArgMap)

func (*Logger) Infos

func (l *Logger) Infos(msg string)

func (*Logger) Map

func (l *Logger) Map(level Level, tmpl string, args sllm.ArgMap)

func (*Logger) Panica

func (l *Logger) Panica(tmpl string, args ...interface{})

func (*Logger) Panice

func (l *Logger) Panice(err error)

func (*Logger) Panicf

func (l *Logger) Panicf(format string, a ...interface{})

func (*Logger) Panicm

func (l *Logger) Panicm(tmpl string, args sllm.ArgMap)

func (*Logger) Panics

func (l *Logger) Panics(msg string)

func (*Logger) Str

func (l *Logger) Str(level Level, msg string)

func (*Logger) Tracea

func (l *Logger) Tracea(tmpl string, args ...interface{})

func (*Logger) Tracee

func (l *Logger) Tracee(err error)

func (*Logger) Tracef

func (l *Logger) Tracef(format string, a ...interface{})

func (*Logger) Tracem

func (l *Logger) Tracem(tmpl string, args sllm.ArgMap)

func (*Logger) Traces

func (l *Logger) Traces(msg string)

func (*Logger) Warna

func (l *Logger) Warna(tmpl string, args ...interface{})

func (*Logger) Warne

func (l *Logger) Warne(err error)

func (*Logger) Warnf

func (l *Logger) Warnf(format string, a ...interface{})

func (*Logger) Warnm

func (l *Logger) Warnm(tmpl string, args sllm.ArgMap)

func (*Logger) Warns

func (l *Logger) Warns(msg string)

type Str

type Str = qblog.Str

Directories

Path Synopsis
example
exe
lib

Jump to

Keyboard shortcuts

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