Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Logging Practices for Cadence Transactions #141

Open
monilpat opened this issue Dec 24, 2024 · 0 comments
Open

Enhance Logging Practices for Cadence Transactions #141

monilpat opened this issue Dec 24, 2024 · 0 comments
Labels

Comments

@monilpat
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Current logging within the Cadence transaction scripts lacks structure and meaningful context, making it difficult to debug and trace issues effectively.

Describe the solution you'd like

Implement structured logging for Cadence transaction scripts, such as create_new_account_with_coa.cdc and transfer_erc20.cdc. This involves:

  • Using a consistent JSON format for logs.
  • Including standard fields like timestamp, transaction ID, and log level.
  • Capturing input parameters and execution results in logs.
  • Logging specific error messages with stack traces when transactions fail.

Describe alternatives you've considered

  • Using plain text logs, which are harder to parse and aggregate.
  • Relying on external monitoring tools without improving in-script logging.

Additional context

Structured logging will significantly improve observability and debugging capabilities, especially in production environments where real-time insights are critical.

Related Issues

No related issues found at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant