Documentation ¶
Index ¶
- Constants
- Variables
- func APILogger(ctx context.Context, method, path string, body interface{})
- func DetailLoggerError(ctx context.Context, command, details string, err ...interface{})
- func DetailLoggerInfo(ctx context.Context, command, details string, logData interface{})
- func DetailLoggerWarn(ctx context.Context, command, details string, warn ...interface{})
- func FormatDate(time time.Time) string
- func InitLogger(env string, name string)
- type LogJSON
Constants ¶
View Source
const ( // ActivityID generate uuid ActivityID key = "activityID" // CreatedBy who created logger process CreatedBy key = "createdBy" // Email who created logger process Email key = "email" // PhoneNumber who created logger process PhoneNumber key = "phoneNumber" // UserRole who created logger process UserRole key = "role" // CMSRole who created logger process CMSRole key = "cmsRole" // IsInfluencer check log using elastic IsInfluencer key = "isInfluencer" )
Variables ¶
View Source
var Logger logger
Logger instance of logger
Functions ¶
func DetailLoggerError ¶
DetailLoggerError detail logger error
func DetailLoggerInfo ¶
DetailLoggerInfo detail logger info
func DetailLoggerWarn ¶
DetailLoggerWarn detail logger warning
Types ¶
Click to show internal directories.
Click to hide internal directories.