lumber

package module
v0.0.0-...-e16d190 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

go-lumber

ci Go Report Card Contributors GitHub release

Lumberjack protocol client and server implementations for go.

Example Server

There is an example server in cmd/tst-lj. It will accept connections and log when it receives batches of events.

# Install to $GOPATH/bin.
go install github.com/scippio/go-lumber/cmd/tst-lj@latest

# Start server.
tst-lj -bind=localhost:5044 -v2
2022/08/14 00:13:54 Server config: server.options{timeout:30000000000, keepalive:3000000000, decoder:(server.jsonDecoder)(0x100d88e80), tls:(*tls.Config)(nil), v1:false, v2:true, ch:(chan *lj.Batch)(nil)}
2022/08/14 00:13:54 tcp server up

Documentation

Overview

Package lumber provides lumberjack client and server implementations.

Directories

Path Synopsis
Package client implementing lumberjack clients.
Package client implementing lumberjack clients.
v2
Package v2 implements clients supporting lumberjack protocol version 2.
Package v2 implements clients supporting lumberjack protocol version 2.
cmd
tst-lj
Lumberjack server test tool.
Lumberjack server test tool.
tst-send
Test client pushing precomputed batch of events.
Test client pushing precomputed batch of events.
Package lj implements common lumberjack types and functions.
Package lj implements common lumberjack types and functions.
Package log provides logging functionality used in go-lumber.
Package log provides logging functionality used in go-lumber.
Package protocol provides common protocol definitions used by client and server implementations.
Package protocol provides common protocol definitions used by client and server implementations.
v1
Package v1 provides common lumberjack protocol version 1 definitions.
Package v1 provides common lumberjack protocol version 1 definitions.
v2
Package v2 provides common lumberjack protocol version 2 definitions.
Package v2 provides common lumberjack protocol version 2 definitions.
Package server provides lumberjack server implementations.
Package server provides lumberjack server implementations.
v1
Package v1 implements the lumberjack server supporting protocol version 1.
Package v1 implements the lumberjack server supporting protocol version 1.
v2
Package v2 implements the lumberjack server supporting protocol version 2.
Package v2 implements the lumberjack server supporting protocol version 2.

Jump to

Keyboard shortcuts

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