journal

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(priority journal.Priority, prefix string, varsInMessage bool) commonlog.Message

Types

type Backend

type Backend struct {
	VarsInMessage bool
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend() *Backend

func (*Backend) AllowLevel

func (self *Backend) AllowLevel(level commonlog.Level, name ...string) bool

(commonlog.Backend interface)

func (*Backend) Configure

func (self *Backend) Configure(verbosity int, path *string)

(commonlog.Backend interface)

func (*Backend) GetMaxLevel

func (self *Backend) GetMaxLevel(name ...string) commonlog.Level

(commonlog.Backend interface)

func (*Backend) GetWriter

func (self *Backend) GetWriter() io.Writer

(commonlog.Backend interface)

func (*Backend) NewMessage

func (self *Backend) NewMessage(level commonlog.Level, depth int, name ...string) commonlog.Message

(commonlog.Backend interface)

func (*Backend) SetMaxLevel

func (self *Backend) SetMaxLevel(level commonlog.Level, name ...string)

(commonlog.Backend interface)

type JournalWriter

type JournalWriter struct{}

func (JournalWriter) Write

func (self JournalWriter) Write(p []byte) (int, error)

(io.Writer interface)

type Message

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

func (*Message) Send

func (self *Message) Send()

(commonlog.Message interface)

func (*Message) Set

func (self *Message) Set(key string, value any) commonlog.Message

(commonlog.Message interface)

Jump to

Keyboard shortcuts

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