logx

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logx provides structured logging wrappers for NFTBan This centralizes log prefixes and makes future enhancements (JSON logs, levels) easier

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audit

func Audit(format string, args ...any)

Audit logs audit trail events (actions taken)

func Auth

func Auth(format string, args ...any)

Auth logs authentication-related messages

func AuthError

func AuthError(format string, args ...any)

AuthError logs auth errors

func Config

func Config(format string, args ...any)

Config logs configuration changes

func DDoS

func DDoS(format string, args ...any)

DDoS logs DDoS protection events

func Daemon added in v1.0.26

func Daemon(format string, args ...any)

Daemon logs daemon lifecycle events

func DaemonError added in v1.0.26

func DaemonError(format string, args ...any)

DaemonError logs daemon errors

func Debug

func Debug(format string, args ...any)

Debug logs debug messages with [DEBUG] prefix

func Error

func Error(format string, args ...any)

Error logs error messages with [ERROR] prefix

func Feeds

func Feeds(format string, args ...any)

Feeds logs threat feed operations

func Firewall

func Firewall(format string, args ...any)

Firewall logs firewall operations (ban, unban, rules)

func FirewallError

func FirewallError(format string, args ...any)

FirewallError logs firewall errors

func GeoIP

func GeoIP(format string, args ...any)

GeoIP logs GeoIP-related operations

func HTTP

func HTTP(format string, args ...any)

HTTP logs HTTP request/response messages

func IPC added in v1.0.26

func IPC(format string, args ...any)

IPC logs inter-process communication events

func Info

func Info(format string, args ...any)

Info logs informational messages with [INFO] prefix

func Login

func Login(format string, args ...any)

Login logs login monitoring events

func Metrics

func Metrics(format string, args ...any)

Metrics logs metrics collection events

func Module added in v1.0.26

func Module(format string, args ...any)

Module logs module lifecycle events

func NFT

func NFT(format string, args ...any)

NFT logs nftables operations

func Portscan

func Portscan(format string, args ...any)

Portscan logs port scan detection events

func Security

func Security(format string, args ...any)

Security logs security-related events (blocked IPs, auth failures, etc.)

func SecurityWarn

func SecurityWarn(format string, args ...any)

SecurityWarn logs security warnings

func Session

func Session(format string, args ...any)

Session logs session management events

func Sprintf

func Sprintf(category, format string, args ...any) string

Sprintf returns formatted string with category prefix (for custom logging)

func Suricata

func Suricata(format string, args ...any)

Suricata logs Suricata IDS integration events

func Sync

func Sync(format string, args ...any)

Sync logs synchronization operations

func Warn

func Warn(format string, args ...any)

Warn logs warning messages with [WARN] prefix

func Watchdog added in v1.0.26

func Watchdog(format string, args ...any)

Watchdog logs dynamic watchdog events (pressure, mode changes, actions)

func WatchdogCritical added in v1.0.26

func WatchdogCritical(format string, args ...any)

WatchdogCritical logs watchdog critical events (mode transitions to SURVIVAL)

func WatchdogError added in v1.0.26

func WatchdogError(format string, args ...any)

WatchdogError logs watchdog errors

func WatchdogWarn added in v1.0.26

func WatchdogWarn(format string, args ...any)

WatchdogWarn logs watchdog warnings (pressure threshold breaches)

Types

This section is empty.

Jump to

Keyboard shortcuts

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