Crates.io | arcis-diagnostics |
lib.rs | arcis-diagnostics |
version | 0.3.0 |
created_at | 2025-04-30 19:04:53.985007+00 |
updated_at | 2025-09-02 14:23:26.299878+00 |
description | Debugging and performance diagnostics toolkit for the Arcis framework. |
homepage | https://www.arcium.com |
repository | |
max_upload_size | |
id | 1655345 |
size | 7,117 |
Debugging and performance diagnostics toolkit for the Arcis framework. This crate provides logging and diagnostic utilities to help developers debug and optimize their MPC circuits, offering structured logging with different severity levels and contextual information.
use arcis_diagnostics::{log_info, log_warn, log_error, Diagnostic, LogLevel};
// Use logging macros for different severity levels
log_info!("Circuit initialized with {} parties", party_count);
log_warn!("Performance may be degraded with large input sizes");
log_error!("Failed to validate circuit: {}", error_msg);
// Create diagnostics programmatically
let diagnostic = Diagnostic {
level: LogLevel::Error,
message: "Circuit validation failed".to_string(),
context: Some("validation phase".to_string()),
};
LogLevel
- Enumeration of log severity levels (Info, Warn, Error)Diagnostic
- Structured diagnostic message with level, message, and optional contextlog_info!
- Log informational messageslog_warn!
- Log warning messageslog_error!
- Log error messages