logging

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logging provides log rotation for git-courer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RotatingLogWriter

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

RotatingLogWriter implements log rotation (max N lines).

func NewRotatingLogWriter

func NewRotatingLogWriter(path string, maxLines int) (*RotatingLogWriter, error)

NewRotatingLogWriter creates a new rotating log writer.

func (*RotatingLogWriter) Write

func (w *RotatingLogWriter) Write(p []byte) (n int, err error)

Write implements io.Writer with log rotation.

Jump to

Keyboard shortcuts

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