diagnostics_log_encoding/
constants.rs

1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5pub(crate) const PID: &str = "pid";
6pub(crate) const TID: &str = "tid";
7pub(crate) const TAG: &str = "tag";
8pub(crate) const NUM_DROPPED: &str = "num_dropped";
9pub(crate) const MESSAGE: &str = "message";
10pub(crate) const FILE: &str = "file";
11pub(crate) const LINE: &str = "line";
12
13/// Size of the FXT header.
14pub const FXT_HEADER_SIZE: usize = 8;
15
16/// The tracing format supports many types of records, we're sneaking in as a log message.
17pub const TRACING_FORMAT_LOG_RECORD_TYPE: u8 = 9;