{"action":"created","issue":{"url":"https://api.github.com/repos/Drakulix/simplelog.rs/issues/21","repository_url":"https://api.github.com/repos/Drakulix/simplelog.rs","labels_url":"https://api.github.com/repos/Drakulix/simplelog.rs/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Drakulix/simplelog.rs/issues/21/comments","events_url":"https://api.github.com/repos/Drakulix/simplelog.rs/issues/21/events","html_url":"https://github.com/Drakulix/simplelog.rs/issues/21","id":314945301,"number":21,"title":"why new function return different type?","user":{"login":"damody","id":6639075,"avatar_url":"https://avatars1.githubusercontent.com/u/6639075?v=4","gravatar_id":"","url":"https://api.github.com/users/damody","html_url":"https://github.com/damody","followers_url":"https://api.github.com/users/damody/followers","following_url":"https://api.github.com/users/damody/following{/other_user}","gists_url":"https://api.github.com/users/damody/gists{/gist_id}","starred_url":"https://api.github.com/users/damody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damody/subscriptions","organizations_url":"https://api.github.com/users/damody/orgs","repos_url":"https://api.github.com/users/damody/repos","events_url":"https://api.github.com/users/damody/events{/privacy}","received_events_url":"https://api.github.com/users/damody/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-17T07:55:27Z","updated_at":"2018-04-17T08:49:06Z","closed_at":null,"author_association":"NONE","body":"TermLogger::new return Option<Box<TermLogger>>\r\nWriteLogger::new return Box<WriteLogger>"},"comment":{"url":"https://api.github.com/repos/Drakulix/simplelog.rs/issues/comments/381905095","html_url":"https://github.com/Drakulix/simplelog.rs/issues/21#issuecomment-381905095","issue_url":"https://api.github.com/repos/Drakulix/simplelog.rs/issues/21","id":381905095,"user":{"login":"damody","id":6639075,"avatar_url":"https://avatars1.githubusercontent.com/u/6639075?v=4","gravatar_id":"","url":"https://api.github.com/users/damody","html_url":"https://github.com/damody","followers_url":"https://api.github.com/users/damody/followers","following_url":"https://api.github.com/users/damody/following{/other_user}","gists_url":"https://api.github.com/users/damody/gists{/gist_id}","starred_url":"https://api.github.com/users/damody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damody/subscriptions","organizations_url":"https://api.github.com/users/damody/orgs","repos_url":"https://api.github.com/users/damody/repos","events_url":"https://api.github.com/users/damody/events{/privacy}","received_events_url":"https://api.github.com/users/damody/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T08:49:06Z","updated_at":"2018-04-17T08:49:06Z","author_association":"NONE","body":"and the good init for example\r\n```\r\n#[macro_use] extern crate log;\r\nextern crate simplelog;\r\nuse simplelog::*;\r\nuse std::fs::File;\r\nfn main() {\r\n    if term::stderr().is_some()  && term::stdout().is_some() {\r\n        veclog.push(TermLogger::new(LevelFilter::Warn, Config::default()).unwrap());\r\n    }\r\n    let file = File::create(&config.dbg_output_log_path);\r\n    if file.is_ok() {\r\n        veclog.push(WriteLogger::new(LevelFilter::Trace, Config::default(), file.unwrap()));\r\n    }\r\n    CombinedLogger::init(veclog).unwrap();\r\n    error!(\"Bright red error\");\r\n    info!(\"This only appears in the log file\");\r\n    debug!(\"This level is currently not enabled for any logger\");\r\n}\r\n```"}}
{"actor":{"display_login":"damody"}}