Documentation ¶
Index ¶
- Constants
- func InsertLog(content string, msgType int, msgErr int, roundHeight int64, height int64, ...)
- func InsertSystemError(logType int, roundHeight int64, height int64, format string, v ...interface{})
- func InsertSystemPaymemtError(logType int, addr string, addr2 string, format string, v ...interface{})
- func Save()
- type LogDB
- type Logger
- type Msg
Constants ¶
View Source
const ( LogTypePendingBlock = 1000 LogTypeMaturedBlock = 2000 LogTypePaymentWork = 3000 LogTypeSystem = 7000 )
View Source
const ( LogErrorNothing = 0 LogSubTypeImmaturedBlock = 201 LogSubTypeOrphanBlcok = 202 LogSubTypeLostBlcok = 203 LogSubTypePaymentLock = 301 LogSubTypePaymentTransaction = 302 LogSubTypePaymentUnlock = 303 LogSubTypePaymentWriteDB = 304 LogSubTypePaymentTxWait = 305 LogSubTypePaymentTxComplete = 306 LogSubTypeError = 10000 LogSubTypeSystemRoundInfoRedis = 10001 LogErrorNothingRoundBlock = 10002 )
Variables ¶
This section is empty.
Functions ¶
func InsertSystemError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.