tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

lib.rs (613B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 pub struct OsLogger;
      6 
      7 use log::{LevelFilter, SetLoggerError};
      8 
      9 impl OsLogger {
     10    pub fn new(_subsystem: &str) -> Self {
     11        Self
     12    }
     13 
     14    pub fn level_filter(self, _level: LevelFilter) -> Self {
     15        self
     16    }
     17 
     18    pub fn category_level_filter(self, _category: &str, _level: LevelFilter) -> Self {
     19        self
     20    }
     21 
     22    pub fn init(self) -> Result<(), SetLoggerError> {
     23        Ok(())
     24    }
     25 }