Skip to content

Commit

Permalink
修改字段名称
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jan 1, 2024
1 parent abb4016 commit 0487b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flog/logData.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ type LogData struct {
AppId int64 // 应用ID
AppName string // 应用名称
AppIp string // 应用IP
Id int64 // 主键ID
LogId int64 // 主键ID
}

func newLogData(logLevel eumLogLevel.Enum, content string, component string) *LogData {
var traceId int64
if t := trace.CurTraceContext.Get(); t != nil {
traceId = t.GetTraceId()
}
return &LogData{Content: content, CreateAt: dateTime.Now(), LogLevel: logLevel, Component: component, newLine: true, TraceId: traceId, AppId: core.AppId, AppName: core.AppName, AppIp: core.AppIp, Id: snowflake.GenerateId()}
return &LogData{Content: content, CreateAt: dateTime.Now(), LogLevel: logLevel, Component: component, newLine: true, TraceId: traceId, AppId: core.AppId, AppName: core.AppName, AppIp: core.AppIp, LogId: snowflake.GenerateId()}
}

//// 清除颜色
Expand Down

0 comments on commit 0487b8d

Please sign in to comment.