Help us shape the future of Go! Take the 2026 Go Developer Survey

logen

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 3 Imported by: 1

README

Logen

Logs to events

  • detect and remove likely identifiers
  • detect and remove numbers

Documentation

Overview

Package logen provides tools for processing and analyzing log messages. It offers functionalities to filter, sanitize, and extract meaningful information from unstructured log data, making it suitable for log analysis and monitoring applications.

Index

Constants

This section is empty.

Variables

View Source
var (
	// BracketFilter filters words separate by brackets.
	// Common logging practice is to report variables in log message using brackets, eg:
	//
	// - "parsed [58] roles from file [/usr/share/elasticsearch/config/roles.yml]"
	//
	// - "loaded file [foo.log] with checksum [jksjksjsq]"
	BracketFilter = separatorFilter("[", "]")
)

Functions

This section is empty.

Types

type Filter

type Filter func(string) string

type Sanitizer

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

func NewSanitizer

func NewSanitizer() (*Sanitizer, error)

func (*Sanitizer) Sanitized

func (st *Sanitizer) Sanitized(s string) string

Jump to

Keyboard shortcuts

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