MCPcopy Create free account
hub / github.com/dfinity/orbit / log

Method log

core/upgrader/impl/src/services/logger.rs:52–56  ·  view source on GitHub ↗

Logs an entry to the storage. If it cannot log the entry, it prints to the canister's logs.

(&self, entry_type: LogEntryType)

Source from the content-addressed store, hash-verified

50
51 /// Logs an entry to the storage. If it cannot log the entry, it prints to the canister's logs.
52 pub fn log(&self, entry_type: LogEntryType) {
53 if let Err(err) = self.try_log(entry_type) {
54 crate::upgrader_ic_cdk::api::print(format!("Failed to log entry: {err}"));
55 }
56 }
57
58 /// Returns logs from the storage starting from the end of the log.
59 pub fn get_logs(&self, offset: Option<u64>, limit: Option<u64>) -> GetLogsResult {

Callers 15

upgradeMethod · 0.80
dropMethod · 0.80
set_committeeMethod · 0.80
set_accountsMethod · 0.80
do_recoveryMethod · 0.80
request_recoveryMethod · 0.80
test_logger_serviceFunction · 0.80
test_log_trimmingFunction · 0.80
cli.tsFile · 0.80
list.tsFile · 0.80

Calls 2

printFunction · 0.85
try_logMethod · 0.80

Tested by 2

test_logger_serviceFunction · 0.64
test_log_trimmingFunction · 0.64