mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-03 09:48:38 +02:00
It's only used by glean in code that is not actually used. It allows to remove the only use of dashmap, which is a rather complex crate. Differential Revision: https://phabricator.services.mozilla.com/D179747
25 lines
613 B
Rust
25 lines
613 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
pub struct OsLogger;
|
|
|
|
use log::{LevelFilter, SetLoggerError};
|
|
|
|
impl OsLogger {
|
|
pub fn new(_subsystem: &str) -> Self {
|
|
Self
|
|
}
|
|
|
|
pub fn level_filter(self, _level: LevelFilter) -> Self {
|
|
self
|
|
}
|
|
|
|
pub fn category_level_filter(self, _category: &str, _level: LevelFilter) -> Self {
|
|
self
|
|
}
|
|
|
|
pub fn init(self) -> Result<(), SetLoggerError> {
|
|
Ok(())
|
|
}
|
|
}
|