log

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugWriter io.Writer = os.Stderr
	InfoWriter  io.Writer = os.Stderr
	WarnWriter  io.Writer = os.Stderr
	ErrWriter   io.Writer = os.Stderr
	CritWriter  io.Writer = os.Stderr
)
View Source
var (
	DebugPrefix string = "<7>[DEBUG]    "
	InfoPrefix  string = "<6>[INFO]     "
	WarnPrefix  string = "<4>[WARNING]  "
	ErrPrefix   string = "<3>[ERROR]    "
	CritPrefix  string = "<2>[CRITICAL] "
)

Functions

func Crit

func Crit(v ...interface{})

func Critf

func Critf(format string, v ...interface{})

func Debug

func Debug(v ...interface{})

func Debugf

func Debugf(format string, v ...interface{})

func Error

func Error(v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func Fatal

func Fatal(v ...interface{})

Writes critical log, stops application

func Fatalf

func Fatalf(format string, v ...interface{})

Writes crit log, stops application

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func Init

func Init(lvl string, logdate bool)

func Loglevel

func Loglevel() string

func Panic

func Panic(v ...interface{})

Writes panic stacktrace, but keeps application alive

func Panicf

func Panicf(format string, v ...interface{})

Writes panic stacktrace, but keeps application alive

func Print

func Print(v ...interface{})

Uses Info() -> If errorpath required at some point: Will need own writer with 'Output(2, out)' to correctly render path

func Printf

func Printf(format string, v ...interface{})

Uses Infof() -> If errorpath required at some point: Will need own writer with 'Output(2, out)' to correctly render path

func Warn

func Warn(v ...interface{})

func Warnf

func Warnf(format string, v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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