MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Format

Method Format

agent/app/task/task.go:389–393  ·  view source on GitHub ↗
(entry *logrus.Entry)

Source from the content-addressed store, hash-verified

387type SimpleFormatter struct{}
388
389func (f *SimpleFormatter) Format(entry *logrus.Entry) ([]byte, error) {
390 timestamp := entry.Time.Format("2006/01/02 15:04:05")
391 message := fmt.Sprintf("%s %s\n", timestamp, entry.Message)
392 return []byte(message), nil
393}

Callers 15

ListSystemLogFileMethod · 0.45
RedisBackupMethod · 0.45
handleRedisRecoverFunction · 0.45
RefreshTokenMethod · 0.45
WebsiteBackupMethod · 0.45
handleWebsiteRecoverFunction · 0.45
LoadCurrentInfoMethod · 0.45
CleanMethod · 0.45
doSystemCleanFunction · 0.45
LoadStatusMethod · 0.45
handleAppMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected