package
5.1.1+incompatible
Repository: https://github.com/pusher/oauth2_proxy.git
Documentation: pkg.go.dev
# Functions
Fatal is equivalent to Print() followed by a call to os.Exit(1).
Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
Flags returns the output flags for the standard logger.
FormatTimestamp returns a formatted timestamp for the standard logger.
GetClient parses an HTTP request for the client/remote IP address.
New creates a new Standarderr Logger.
Panic is equivalent to Print() followed by a call to panic().
Panicf is equivalent to Printf() followed by a call to panic().
Panicln is equivalent to Println() followed by a call to panic().
Print calls Output to print to the standard logger.
PrintAuthf writes authentication details to the standard logger.
Printf calls Output to print to the standard logger.
Println calls Output to print to the standard logger.
PrintReq writes request details to the standard logger.
SetAuthEnabled enables or disables auth logging for the standard logger.
SetAuthTemplate sets the template for auth logging for the standard logger.
SetExcludePaths sets the path to exclude from logging, eg: health checks.
SetFlags sets the output flags for the standard logger.
SetOutput sets the output destination for the standard logger.
SetReqEnabled enables or disables request logging for the standard logger.
SetReqTemplate sets the template for request logging for the standard logger.
SetReverseProxy controls whether logging will trust headers that can be set by a reverse proxy for the standard logger.
SetStandardEnabled enables or disables standard logging for the standard logger.
SetStandardTemplate sets the template for standard logging for the standard logger.
# Constants
AuthError indicates that an auth attempt has failed due to an error.
AuthFailure indicates that an auth attempt has failed explicitly.
AuthSuccess indicates that an auth attempt has succeeded explicitly.
DefaultAuthLoggingFormat defines the default auth log format.
DefaultRequestLoggingFormat defines the default request log format.
DefaultStandardLoggingFormat defines the default standard log format.
Llongfile flag to log full file name and line number: /a/b/c/d.go:23.
Lshortfile flag to log final file name element and line number: d.go:23.
LstdFlags flag for initial values for the logger.
LUTC flag to log UTC datetime rather than the local time zone.
# Structs
A Logger represents an active logging object that generates lines of output to an io.Writer passed through a formatter.
# Type aliases
AuthStatus defines the different types of auth logging that occur.