Documentation ¶
Index ¶
- func ClearInfo()
- func ErrorMsg(message string)
- func ErrorWithFields(fields map[string]interface{}, err error)
- func ErrorWithMsg(message string, err error)
- func FilterSensitiveWordsMap(s string, wordsMap map[string]bool) (filtered string, changed bool)
- func Info(format string, a ...interface{})
- func InfoWithFields(fields map[string]interface{}, message interface{})
- func InitLogs(requestID *string, isDebugBuild bool, buildVersion string, ...)
- func LogApiAudit(fields log.Fields)
- func LogLevel() log.Level
- func LogRequestInfo(req events.APIGatewayProxyRequest)
- func LogSQSEvent(event events.SQSEvent)
- func LogShipmentID(id int64)
- func MaskPasswordsInJsonString(jsonString string) string
- func SQLDebugInfo(sql string)
- func SanitiseFields(fields map[string]interface{}) map[string]interface{}
- func SanitiseLogs(logString string) string
- func SetOutputToFile(file *os.File)
- func Warn(format string, a ...interface{})
- func WarnWithFields(fields map[string]interface{}, err error)
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithFields ¶
func ErrorWithMsg ¶
func FilterSensitiveWordsMap ¶
func InfoWithFields ¶
func InfoWithFields(fields map[string]interface{}, message interface{})
func LogApiAudit ¶
func LogRequestInfo ¶
func LogRequestInfo(req events.APIGatewayProxyRequest)
func LogSQSEvent ¶
func LogShipmentID ¶
func LogShipmentID(id int64)
func MaskPasswordsInJsonString ¶ added in v1.101.0
MaskPasswordsInJsonString takes a string and, if it is a JSON string, sanitises all the password. In order for the regex to work correctly we need to prettify the JSON, so the function always returns a formatted JSON string.
func SQLDebugInfo ¶
func SQLDebugInfo(sql string)
func SanitiseFields ¶ added in v1.101.0
func SanitiseLogs ¶ added in v1.101.0
func SetOutputToFile ¶
func WarnWithFields ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.