Categorygithub.com/lestrrat/go-apache-logformat
modulepackage
2.0.1+incompatible
Repository: https://github.com/lestrrat/go-apache-logformat.git
Documentation: pkg.go.dev

# README

go-apache-logformat

Build Status

GoDoc

Coverage Status

SYNOPSYS

import (
  "net/http"
  "os"

  "github.com/lestrrat/go-apache-logformat"
)

func main() {
  var s http.ServeMux
  s.HandleFunc("/", handleIndex)
  s.HandleFunc("/foo", handleFoo)

  http.ListenAndServe(":8080", apachelog.CombinedLog.Wrap(s, os.Stderr))
}

DESCRIPTION

This is a port of Perl5's Apache::LogFormat::Compiler to golang

# Functions

New creates a new ApacheLog instance from the given format.

# Variables

Combined is a pre-defined ApacheLog struct to log "combined" log format.
Combined is a pre-defined ApacheLog struct to log "common" log format.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Format describes an Apache log format.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author