logsec

package module
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 7 Imported by: 2

README

OVERVIEW

Go Reference Go Report Card Go Build

paepcke.de/logsec

Log library with focus on deep integration for chroots, suid, (s)user priv drop 100 % pure golang, stdlib only, no external dependencies, use as lib, see api.go

DOCS

pkg.go.dev/paepcke.de/logsec

CONTRIBUTION

Yes, Please! PRs Welcome!

Documentation

Overview

package logsec provides unix log & chroot services

Index

Constants

This section is empty.

Variables

View Source
var (
	LogErr   = make(chan string, 100)
	LogInfo  = make(chan string, 100)
	LogDebug = make(chan string, 100)
)

Global Shared Locks & [Info|Error|Debug} Channel

Functions

func Chroot

func Chroot(c *ChrootD) bool

Chroot ...

func LogDaemon

func LogDaemon(c *LogD)

LogDaemon ...

func Show

func Show(in string)

Show ...

func ShowDebug

func ShowDebug(in string)

ShowDebug ...

func ShowErr

func ShowErr(in string)

ShowErr ...

func ShowInf

func ShowInf(in string)

ShowInf ...

Types

type ChrootD

type ChrootD struct {
	DIR string // ch-root directory [disable: <empty>]
	UID int    // chroot user UID number [disable: 0]
	GID int    // chroot user GID number [disable: 0]
}

ChrootD ...

type LogD

type LogD struct {
	App            string        // Log App Name
	LogMode        string        // backend event log target [SYSLOG|CONSOLE|MUTE] [disable: <empty>]
	FileName       string        // backend event log target [SYSLOG|CONSOLE|MUTE] [disable: <empty>]
	ErrorRateLimit time.Duration // global ddos protection via error event sender
}

LogD ...

Jump to

Keyboard shortcuts

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