package
7.8.2
Repository: https://github.com/oauth2-proxy/oauth2-proxy.git
Documentation: pkg.go.dev

# Functions

Error calls OutputErr to print to the standard logger's error channel.
Errorf calls OutputErr to print to the standard logger's error channel.
Errorln calls OutputErr to print to the standard logger's error channel.
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.
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.
SetErrOutput sets the output destination for the standard logger's error channel.
SetErrToInfo enables or disables error logging to output writer instead of error writer.
SetExcludePaths sets the path to exclude from logging, eg: health checks.
SetFlags sets the output flags for the standard logger.
SetGetClientFunc sets the function which determines the apparent IP address set by a reverse proxy for the standard logger.
SetOutput sets the output destination for the standard logger's default channel.
SetReqEnabled enables or disables request logging for the standard logger.
SetReqTemplate sets the template for request logging 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.
DEFAULT is the default log level (effectively INFO).
DefaultAuthLoggingFormat defines the default auth log format.
DefaultRequestLoggingFormat defines the default request log format.
DefaultStandardLoggingFormat defines the default standard log format.
ERROR is for error-level logging.
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.
Returns the apparent "real client IP" as a string.
Level indicates the log level for log messages.