github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/proto/logger/messages.go (about)

     1  package logger
     2  
     3  type DebugRequest struct {
     4  	Args  []string
     5  	Name  string
     6  	Level uint8
     7  }
     8  
     9  type DebugResponse struct{}
    10  
    11  type PrintRequest struct {
    12  	Args []string
    13  	Name string
    14  }
    15  
    16  type PrintResponse struct{}
    17  
    18  type SetDebugLevelRequest struct {
    19  	Name  string
    20  	Level int16
    21  }
    22  
    23  type SetDebugLevelResponse struct{}
    24  
    25  type WatchRequest struct {
    26  	DebugLevel   int16
    27  	ExcludeRegex string // Empty: nothing excluded. Processed after includes.
    28  	IncludeRegex string // Empty: everything included.
    29  	Name         string
    30  }
    31  
    32  type WatchResponse struct {
    33  	Error string
    34  } // Log data are streamed afterwards.