mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Log errors
This commit is contained in:
parent
8f5330cb07
commit
13110f48e9
3 changed files with 21 additions and 3 deletions
|
@ -40,7 +40,7 @@ use ::{
|
|||
pub type Result<T> = ::std::result::Result<T, ::failure::Error>;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
Logger::with_env()
|
||||
Logger::with_env_or_str("m=error")
|
||||
.duplicate_to_stderr(Duplicate::All)
|
||||
.log_to_file()
|
||||
.directory("log")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue