Trait concordium_std::HasLogger [−][src]
pub trait HasLogger {
fn init() -> Self;
fn log_raw(&mut self, event: &[u8]) -> Result<(), LogError>;
fn log<S: Serial>(&mut self, event: &S) -> Result<(), LogError> { ... }
}
Expand description
Objects which can serve as loggers.
Logging functionality can be used by smart contracts to record events that might be of interest to external parties. These events are not used on the chain, and cannot be observed by other contracts, but they are stored by the node, and can be queried to provide information to off-chain actors.