logmsg

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountLocked                              = "The account is currently locked"
	AccountUpdateError                         = "Not able to update account information"
	BasicAuthAttemptDenied                     = "An attempt for basic authentication was denied"
	BasicAuthError                             = "Failed to decode JSON for basic authentication"
	BasicAuthInvalid                           = "Basic authentication invalid"
	BasicAuthMissingPassword                   = "Basic authentication failed because missing a password"
	BasicAuthMissingUsername                   = "Basic authentication failed because missing a username"
	EntityError                                = "Error getting entity data"
	EntitySaveError                            = "Error getting entity data"
	InvalidJWT                                 = "Invalid JSON web token"
	JWTError                                   = "Failed to generate JSON web token"
	JWTSecretNotSet                            = "JSON web token secret is not set"
	MFAAttemptDenied                           = "An attempt for multiple factor authentication was denied"
	MFAEmailError                              = "Failed to send email for multiple factor authentication"
	MFAError                                   = "Error during multiple factor authentication"
	MFAInvalid                                 = "Failed multiple factor authentication"
	MFAResetAttempt                            = "An attempt to reset multiple factor authentication was denied"
	MiddlewareError                            = "Middleware has thrown an error"
	MigrationUnsupported                       = "Database migrations are not automated for Windows. Please manually execute the migrations."
	NoAccount                                  = "Unable to retrieve account"
	NoAuthorizationToken                       = "No authorization token header found"
	NoUsername                                 = "Unable to retrieve account because no username was provided"
	PayloadDeserializeError                    = "Failed to deserialize payload"
	PayloadEmpty                               = "Payload not provided"
	PayloadEntityError                         = "Error creating entity from the payload"
	PayloadInvalid                             = "Payload is invalid"
	PayloadMissingType                         = "Payload is missing a type"
	QRCodeError                                = "Failed to generate multiple factor authentication QR code"
	RetrievingAccount                          = "Retrieving account"
	SamlAttemptDenied                          = "An attempt for SAML authentication was denied"
	SamlFormError                              = "SAML response form value missing"
	SamlIdentifierMissing                      = "SAML attribute identifier missing"
	SamlInvalid                                = "SAML response invalid"
	SamlParseError                             = "Error parsing SAML response"
	SamlRequestError                           = "Error creating SAML authentication request"
	SamlRequestURLError                        = "Error creating SAML authentication request URL"
	USPSDecodeError                            = "Error decoding USPS geocoding response"
	USPSKnownErrorCode                         = "USPS known error received"
	USPSMissingKey                             = "USPS API key has not been set"
	USPSRequestError                           = "Error executing USPS geocoding request"
	USPSUnknownErrorCode                       = "USPS known error received"
	WarnFailedMigration                        = "Failed to migrate database"
	WebserviceMissingURL                       = "Missing endpoint URL for web service"
	WebserviceMissingKey                       = "Missing private key for web service"
	WebserviceMissingCallerInfoAgencyID        = "Missing Caller Info Agency ID"
	WebserviceMissingCallerInfoAgencySSN       = "Missing Caller Info Agency SSN"
	WebserviceMissingCallerInfoAgencyPseudoSSN = "Missing Caller Info Agency Pseudo SSN"
	WebserviceCannotGetApplicationData         = "Unable to retrieve Form Application Data"
	WebserviceMissingAgencyID                  = "Missing Agency ID"
	TransmissionError                          = "Error transmitting package"
	TransmissionStorageError                   = "Failed to store transmission record"
)

Warning messages

View Source
const (
	BasicAuthValid       = "Basic authentication validated"
	GenerateQRCode       = "Generating multiple factor authentication QR code"
	GeneratingPackage    = "Generating package for transmission"
	LoggedOut            = "Logged out"
	MFAValid             = "Multiple factor authentication validated"
	PurgeAccountData     = "Purging account data"
	ResetMFA             = "Reset of multiple factor authentication"
	SamlValid            = "SAML authentication validated"
	StartingServer       = "Starting server"
	StartingServerTLS    = "Starting server with HTTPS/TLS"
	TransmissionRecorded = "Transmission recorded"
	TransmissionStarted  = "Transmission began"
	TransmissionStopped  = "Transmission ended"
	ValidatingJWT        = "Validating JSON web token"
	WebRequest           = "Web server request received"
	JWTSecretSet         = "JSON web token secret is set"
)

Informative messages

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() *logrus.Logger

NewLogger creates a custome logger with environment hooks.

func NewLoggerFromRequest

func NewLoggerFromRequest(r *http.Request) *logrus.Entry

NewLoggerFromRequest creates a custom logger based on properties found in an HTTP request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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