| /* | |
| * Copyright (C) 2019 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, | |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| * See the License for the specific language governing permissions and | |
| * limitations under the License. | |
| */ | |
| syntax = "proto2"; | |
| package perfetto.protos; | |
| message LogMessage { | |
| // interned SourceLocation. | |
| optional uint64 source_location_iid = 1; | |
| // interned LogMessageBody. | |
| optional uint64 body_iid = 2; | |
| enum Priority { | |
| PRIO_UNSPECIFIED = 0; | |
| PRIO_UNUSED = 1; | |
| PRIO_VERBOSE = 2; | |
| PRIO_DEBUG = 3; | |
| PRIO_INFO = 4; | |
| PRIO_WARN = 5; | |
| PRIO_ERROR = 6; | |
| PRIO_FATAL = 7; | |
| } | |
| optional Priority prio = 3; | |
| } | |
| // -------------------- | |
| // Interned data types: | |
| // -------------------- | |
| message LogMessageBody { | |
| optional uint64 iid = 1; | |
| optional string body = 2; | |
| } |