blob: 80e66b69224004cb7dc18849bf4a57087e26ead8 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use fidl_fuchsia_logger::LogMessage;
use fuchsia_syslog_listener::LogProcessor;
use futures::channel::mpsc;
pub struct Listener {
pub send_logs: mpsc::UnboundedSender<LogMessage>,
}
impl LogProcessor for Listener {
fn log(&mut self, message: LogMessage) {
self.send_logs.unbounded_send(message).unwrap();
}
fn done(&mut self) {
panic!("this should not be called");
}
}