Documentation
¶
Overview ¶
Package logging provides the kit's structured JSON logging base (FR-050).
Every log line carries a correlation ID plus the standard chain-context fields; secret material (private keys, mnemonics, sign-doc bytes) must never be logged — TestNoSecretFields enforces the field-name blocklist.
Index ¶
Constants ¶
const ( FieldChainID = "chain_id" FieldHeight = "height" FieldTxHash = "tx_hash" FieldAddress = "address" FieldWithdrawalID = "withdrawal_id" FieldDepositID = "deposit_id" FieldSweepID = "sweep_id" FieldSequence = "sequence" FieldErrorCode = "error_code" FieldNodeEndpoint = "node_endpoint" FieldCorrelationID = "correlation_id" FieldService = "service" )
Standard field keys (FR-050). Use these constants — ad-hoc keys defeat log aggregation and the secret-field lint.
Variables ¶
var ForbiddenFieldSubstrings = []string{
"private_key", "privkey", "mnemonic", "seed_phrase", "sign_doc_bytes", "signature_secret",
}
ForbiddenFieldSubstrings are field-name fragments that must never appear in a log call: they indicate secret material. internal/logging tests and the export-pipeline sanitization scan both consume this list.
Functions ¶
func From ¶
From extracts the correlation-bound logger from ctx, falling back to a service-less root logger.
Types ¶
This section is empty.