| // Copyright 2022 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. |
| |
| export const NANOS_IN_SECOND = 1_000_000_000; |
| // TODO(fxbug.dev/93276): make this configurable. |
| export const MAX_LOGS = 10_000; |
| |
| export const MONIKER_FILTER_LABEL = 'Moniker:'; |
| export const FFX_MONIKER = '<ffx>'; |
| |
| export const SEARCH_PLACEHOLDER = 'Filter logs...'; |
| |
| export const COL_MINWIDTH = 10; |
| |
| // TODO(fxbug.dev/95332): allow users to control what fields they see |
| export const LOGS_HEADERS = { |
| 'timestamp': { |
| 'displayName': 'Timestamp', |
| 'width': '10%', |
| }, |
| 'pid': { |
| 'displayName': 'PID', |
| 'width': '7%', |
| }, |
| 'tid': { |
| 'displayName': 'TID', |
| 'width': '8%', |
| }, |
| 'moniker': { |
| 'displayName': 'Moniker', |
| 'width': '10%', |
| }, |
| 'tags': { |
| 'displayName': 'Tags', |
| 'width': '10%', |
| }, |
| 'severity': { |
| 'displayName': 'Severity', |
| 'width': '8%', |
| }, |
| 'message': { |
| 'displayName': 'Message', |
| 'width': '', |
| } |
| }; |