Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SimpleLogger::with_monotonic_timestamps #93

Open
newpavlov opened this issue Jul 8, 2024 · 0 comments
Open

Add SimpleLogger::with_monotonic_timestamps #93

newpavlov opened this issue Jul 8, 2024 · 0 comments

Comments

@newpavlov
Copy link

We use simple_logger as logger for our tests. We also run MIRI for some of our tests. Unfortunately, MIRI intentionally does not emulate SystemClock with enabled isolation, so we either have to disable isolation, or use SimpleLogger::without_timestamps. The latter works, but we lose information about timings.

It would be nice if simple_logger had support for timestamps based on std::time::Instant. It could remember Instant during initialization and use Instant::elapsed for log entry timestamps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant