Log errors

This commit is contained in:
Aleksey Kladov 2018-08-28 00:42:13 +03:00
parent 8f5330cb07
commit 13110f48e9
3 changed files with 21 additions and 3 deletions

View file

@ -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")