log4j

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFormats

func GetFormats(path string) ([]string, error)

func Regexp

func Regexp(pattern string, customMatchers map[string]string) string

Types

type Appender

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

func NewAppender

func NewAppender(name, class string, layout Layout, params map[string]string) Appender

func (Appender) Class

func (a Appender) Class() string

func (Appender) Layout

func (a Appender) Layout() Layout

func (Appender) Name

func (a Appender) Name() string

func (Appender) Params

func (a Appender) Params() map[string]string

type Config

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

func FromProperties

func FromProperties(properties []byte) Config

func FromXML

func FromXML(configXml []byte) Config

func (*Config) Appenders

func (c *Config) Appenders() map[string]Appender

func (*Config) Empty

func (c *Config) Empty() bool

func (*Config) Loggers

func (c *Config) Loggers() map[string]Logger

type Layout

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

func NewLayout

func NewLayout(class, name, pattern string) Layout

func (Layout) Class

func (l Layout) Class() string

func (Layout) Name

func (l Layout) Name() string

func (Layout) Pattern

func (l Layout) Pattern() string

type Logger

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

func NewLogger

func NewLogger(name, level string, appender *Appender) Logger

func (Logger) Appender

func (l Logger) Appender() *Appender

func (Logger) Level

func (l Logger) Level() string

func (Logger) Name

func (l Logger) Name() string

Jump to

Keyboard shortcuts

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