journal

package
v0.1.68 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(priority journal.Priority, prefix string) logging.Message

Types

type Backend

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

func NewBackend

func NewBackend() *Backend

func (*Backend) AllowLevel

func (self *Backend) AllowLevel(name []string, level logging.Level) bool

logging.Backend interface

func (*Backend) Configure

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

logging.Backend interface

func (*Backend) GetMaxLevel added in v0.1.64

func (self *Backend) GetMaxLevel(name []string) logging.Level

logging.Backend interface

func (*Backend) GetWriter

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

logging.Backend interface

func (*Backend) NewMessage

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

logging.Backend interface

func (*Backend) SetMaxLevel

func (self *Backend) SetMaxLevel(name []string, level logging.Level)

logging.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()

logging.Message interface

func (*Message) Set

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

logging.Message interface

Jump to

Keyboard shortcuts

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