blob: e53d849d53a68d6267472bbad54a25e668a754b7 [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 {fuchsia_syslog, tracing};
#[test]
fn log_and_exit() {
fuchsia_syslog::init_with_tags(&["log_and_exit_test"]).expect("initializing logging");
fuchsia_syslog::set_severity(fuchsia_syslog::levels::DEBUG);
tracing::debug!("my debug message");
tracing::info!("my info message");
tracing::warn!("my warn message");
}