github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/pkg/webview/log.proto (about)

     1  syntax = "proto3";
     2  
     3  package webview;
     4  
     5  import "google/protobuf/timestamp.proto";
     6  
     7  option go_package = "github.com/tilt-dev/tilt/pkg/webview";
     8  
     9  enum LogLevel {
    10    // For backwards-compatibility, the int value doesn't say
    11    // anything about relative severity.
    12    NONE = 0;
    13    INFO = 1;
    14    VERBOSE = 2;
    15    DEBUG = 3;
    16    WARN = 4;
    17    ERROR = 5;
    18  }
    19  
    20  message LogSegment {
    21    string span_id = 1;
    22    google.protobuf.Timestamp time = 2;
    23    string text = 3;
    24    LogLevel level = 4;
    25  
    26  	// When we store warnings in the LogStore, we break them up into lines and
    27  	// store them as a series of line segments. 'anchor' marks the beginning of a
    28  	// series of logs that should be kept together.
    29  	//
    30  	// Anchor warning1, line1
    31  	//        warning1, line2
    32  	// Anchor warning2, line1
    33    bool anchor = 5;
    34  
    35    // Context-specific optional fields for a log segment.
    36    // Used for experimenting with new types of log metadata.
    37    map<string, string> fields = 6;
    38  }
    39  
    40  message LogSpan {
    41    string manifest_name = 1;
    42  }
    43  
    44  message LogList {
    45    map<string, LogSpan> spans = 1;
    46    repeated LogSegment segments = 2;
    47  
    48    // from_checkpoint and to_checkpoint express an interval on the
    49    // central log-store, with an inclusive start and an exclusive end
    50    //
    51    // [from_checkpoint, to_checkpoint)
    52    //
    53    // An interval of [0, 0) means that the server isn't using
    54    // the incremental load protocol.
    55    //
    56    // An interval of [-1, -1) means that the server doesn't have new logs
    57    // to send down.
    58    int32 from_checkpoint = 3;
    59    int32 to_checkpoint = 4;
    60  }