Expand description
logger API suitable for C
While we eventually want to move the implementation to Rust,
Rust code should generally use Rust’s log
crate instead.
Since we use this in the shim, we eventually want this to not depend on
std
nor libc
. (The C part of the implementation currently uses libc).
https://github.com/shadow/shadow/issues/2919
Structs§
Constants§
- _Log
Level_ LOGLEVEL_ DEBUG - _Log
Level_ LOGLEVEL_ ERROR - _Log
Level_ LOGLEVEL_ INFO - _Log
Level_ LOGLEVEL_ TRACE - _Log
Level_ LOGLEVEL_ UNSET - _Log
Level_ LOGLEVEL_ WARNING
Functions§
- logger_
abort ⚠ - logger_
base_ ⚠name - logger_
elapsed_ ⚠micros - logger_
elapsed_ ⚠string - logger_
flush ⚠ - logger_
getDefault ⚠ - logger_
get_ ⚠global_ start_ time_ micros - logger_
isEnabled ⚠ - logger_
log ⚠ - logger_
now_ ⚠micros - logger_
setDefault ⚠ - logger_
setLevel ⚠ - logger_
set_ ⚠global_ start_ time_ micros