Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are cargo log messages stored?

When I build a Rust project using cargo build, I get error messages in the terminal. Are these error messages stored in a log file?

like image 717
David Avatar asked Oct 19 '25 03:10

David


1 Answers

No, but if you'd like to store them, you can use cargo build 2>./log, which redirects all errors to be written to the file ./log.

like image 55
Jeremy Meadows Avatar answered Oct 22 '25 07:10

Jeremy Meadows



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!