Documentation ¶
Index ¶
- Constants
- func AddPersistentTagsToLogger(ctx sdk.Context, keyvals ...interface{}) sdk.Context
- func DebugLog(ctx sdk.Context, msg string, keyvals ...interface{})
- func ErrorLog(ctx sdk.Context, msg string, keyvals ...interface{})
- func ErrorLogWithError(ctx sdk.Context, msg string, err error, keyvals ...interface{})
- func InfoLog(ctx sdk.Context, msg string, keyvals ...interface{})
Constants ¶
const ( SourceModuleKey = "source_module" Error = "error" )
const ( Address = "address" Module = "module" TxMode = "tx_mode" Operation = "operation" OperationsQueue = "operations_queue" Callback = "callback" BlockHeight = "block_height" Msg = "msg" ProposerConsAddress = "proposer_cons_address" Handler = "handler" Tx = "tx" Order = "order" OrderId = "order_id" OrderHash = "order_hash" OrderStatus = "order_status" Subaccount = "subaccount" PerpetualId = "perpetual_id" MevMatches = "mev_matches" StackTrace = "stack_trace" Proposer = "proposer" PrunableBlockHeight = "prunable_block_height" StatusCode = "status_code" Reason = "reason" RemovalStatus = "removal_status" TotalFilled = "total_filled" RequestId = "request_id" OrderSizeOptimisticallyFilledFromMatchingQuantums = "order_size_optimistically_filled_from_matching_quantums" NewLocalValidatorOperationsQueue = "new_local_validator_operations_queue" LocalValidatorOperationsQueue = "local_validator_operations_queue" )
Tag keys Do not have anything generic in here. For example, `Status` is too vague and can be clarified as `OrderStatus` or `DaemonHealthStatus`.
const ( // Module tag values are prefixed with `x/` Clob = "x/clob" CheckTx = "check_tx" RecheckTx = "recheck_tx" DeliverTx = "deliver_tx" )
Tag values
const ( AnteHandler = "AnteHandler" PlaceOrder = "PlaceOrder" CancelOrder = "CancelOrder" MsgBatchCancel = "MsgBatchCancel" ProposedOperations = "ProposedOperations" BeginBlocker = "BeginBlocker" EndBlocker = "EndBlocker" PrepareCheckState = "PrepareCheckState" )
Special tag values that should be PascalCased (i.e function names)
Variables ¶
This section is empty.
Functions ¶
func AddPersistentTagsToLogger ¶
AddPersistentTagsToLogger returns a new sdk.Context with a logger that has new persistent tags that are added to all logs emitted. `keyvals` should be even number in length and be of alternating types (string, interface{}).
func DebugLog ¶
DebugLog reports msg as a debug level log with specified key vals. `keyvals` should be even number in length and be of alternating types (string, interface{}).
func ErrorLog ¶
ErrorLog reports msg as a error log. It constructs an error object on the fly with the given message object. Please try to define a new error and use `ErrorLogWithError` instead. `keyvals` should be even number in length and be of alternating types (string, interface{}).
func ErrorLogWithError ¶
ErrorLogWithError reports msg as a error log with specified key vals, as well as attaching the error object to the log for datadog error tracking. `keyvals` should be even number in length and be of alternating types (string, interface{}).
Types ¶
This section is empty.