log

package
v0.0.0-...-23a414b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceModuleKey = "source_module"
	Error           = "error"
)
View Source
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`.

View Source
const (
	// Module tag values are prefixed with `x/`
	Clob = "x/clob"

	CheckTx   = "check_tx"
	RecheckTx = "recheck_tx"
	DeliverTx = "deliver_tx"
)

Tag values

View Source
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

func AddPersistentTagsToLogger(ctx sdk.Context, keyvals ...interface{}) sdk.Context

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

func DebugLog(ctx sdk.Context, msg string, keyvals ...interface{})

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

func ErrorLog(ctx sdk.Context, msg string, keyvals ...interface{})

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

func ErrorLogWithError(ctx sdk.Context, msg string, err error, keyvals ...interface{})

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{}).

func InfoLog

func InfoLog(ctx sdk.Context, msg string, keyvals ...interface{})

InfoLog reports msg as an info level log with specified key vals. `keyvals` should be even number in length and be of alternating types (string, interface{}).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL