Documentation
¶
Index ¶
- Constants
- func ConvertLogDetails(logID int64, s string) logDetails
- func ConvertLogSQLDetails(logID int64, s string) logSQLDetails
- func DecodeDetailMessage(message interface{}, l interface{}) error
- type Log
- func (l *Log) Begin(c echo.Context)
- func (l *Log) CheckAndMakeTable(engine *xorm.Engine)
- func (l *Log) CheckTable(session *xorm.Engine) bool
- func (l *Log) InsertTable(engine *xorm.Engine) error
- func (l *Log) OutToConsole()
- func (l *Log) OutToSNS(cfg aws.Config, topic string) error
- func (l *Log) SetError(message string)
- func (l *Log) SetPanic(message string)
- func (l *Log) WithEnv(env string) *Log
- func (l *Log) WithMemberID(id int64) *Log
- func (l *Log) WithMemberName(name string) *Log
- func (l *Log) WithMemberOrgID(orgid int64) *Log
- func (l *Log) WithSQL(b *bytes.Buffer) *Log
- func (l *Log) WithStack(b *bytes.Buffer) *Log
- func (l *Log) Write(c *echo.Context)
- func (l *Log) WriteLog(c echo.Context)
Constants ¶
View Source
const ( HeaderXRequestID = "X-Request-ID" HeaderXActionID = "X-Action-ID" HeaderXForwardedFor = "X-Forwarded-For" HeaderXRealIP = "X-Real-IP" HeaderContentLength = "Content-Length" HeaderTraceID = "trace_id" HeaderServiceID = "service_id" )
Variables ¶
This section is empty.
Functions ¶
func ConvertLogDetails ¶
revive:disable:unexported-return
func ConvertLogSQLDetails ¶ added in v1.0.70
func DecodeDetailMessage ¶ added in v1.1.0
func DecodeDetailMessage(message interface{}, l interface{}) error
Types ¶
type Log ¶
type Log struct {
Context *logContext
}
func DecodeMessage ¶ added in v1.0.60
func DecodeMessage(message interface{}) *Log
func (*Log) CheckAndMakeTable ¶
func (*Log) OutToConsole ¶
func (l *Log) OutToConsole()
func (*Log) WithMemberID ¶
func (*Log) WithMemberName ¶
func (*Log) WithMemberOrgID ¶
Click to show internal directories.
Click to hide internal directories.