Record file:line
of Rerun log call
#2963
Labels
🌊 C++ API
C/C++ API specific
enhancement
New feature or request
🐍 Python API
Python logging API
🦀 Rust API
Rust logging API
When user logs some data with Rerun we should log the
file:line
of that log call.A user could use this to figure out where a log call came from. For instance, they may see an image in Rerun and wonder where in their source code that was logged.
When a user misuses Rerun we could also tell the user which file:line in their code cause the problem.
How to find the file:line
RERUN_LOG
macro that reads__FILE__
and__LINE__
#[track_caller]
andLocation::caller()
How to store it
We could have a
CallLocation
component with thefile:line
in it.To save store space we could consider hashing that, and only logging the hash for each log call (except the first one).
The text was updated successfully, but these errors were encountered: