Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderXCorrelationId = "X-Correlation-ID" HeaderAuthorization = "Authorization" HeaderCookie = "Cookie" HeaderSetCookie = "set-cookie" )
Variables ¶
View Source
var ( //AppLogger of truedmp/logger is singleton so we use singleton here. As var so we can inject mock. AppLogger logger.Logger PatternHiddenHeader = `(?im)^((?:Authorization|Cookie|set-cookie):\s*)([^\r\n]*)` )
Functions ¶
This section is empty.
Types ¶
type DefaultLog ¶
type DefaultLog struct { BegTime time.Time XCorrelationId string Data *logger.Application }
func (*DefaultLog) Copy ¶
func (l *DefaultLog) Copy() Log
Copy to copy log object with data. AdditionalField is private map so it's the same object (can't clone without reflect/unsafe).
func (*DefaultLog) Error ¶
func (l *DefaultLog) Error(msg interface{})
func (*DefaultLog) GetData ¶
func (l *DefaultLog) GetData() *logger.Application
func (*DefaultLog) Info ¶
func (l *DefaultLog) Info(msg interface{})
func (*DefaultLog) Warning ¶
func (l *DefaultLog) Warning(msg interface{})
Click to show internal directories.
Click to hide internal directories.