jourlog

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

jourlog

go log with systemd journal

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JLog = &JourLog{
	logLevel:      journal.PriInfo,
	printLog:      false,
	tracebackDeep: 3,
}

Functions

This section is empty.

Types

type JourLog added in v0.1.0

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

func NewJourlog added in v0.1.0

func NewJourlog() *JourLog

NewJourlog Create logger instance

func (*JourLog) Alert added in v0.1.0

func (j *JourLog) Alert(format string, a ...interface{})

func (*JourLog) Critical added in v0.1.0

func (j *JourLog) Critical(format string, a ...interface{})

func (*JourLog) Debug added in v0.1.0

func (j *JourLog) Debug(format string, a ...interface{})

func (*JourLog) Emerge added in v0.1.0

func (j *JourLog) Emerge(format string, a ...interface{})

func (*JourLog) Error added in v0.1.0

func (j *JourLog) Error(format string, a ...interface{})

func (*JourLog) GetEcho added in v0.1.0

func (j *JourLog) GetEcho() bool

GetEcho return current state

func (*JourLog) GetLogLevel added in v0.1.2

func (j *JourLog) GetLogLevel() journal.Priority

GetLogLevel return current loglevel

func (*JourLog) Info added in v0.1.0

func (j *JourLog) Info(format string, a ...interface{})

func (*JourLog) Notice added in v0.1.0

func (j *JourLog) Notice(format string, a ...interface{})

func (*JourLog) SetEcho added in v0.1.0

func (j *JourLog) SetEcho(state bool)

SetEcho print log record console

func (*JourLog) SetLogLevel added in v0.1.2

func (j *JourLog) SetLogLevel(l journal.Priority)

SetLogLevel set new loglevel

func (*JourLog) Warning added in v0.1.0

func (j *JourLog) Warning(format string, a ...interface{})

Jump to

Keyboard shortcuts

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