Goby v2
logger.proto
1 
2 import "goby/common/protobuf/option_extensions.proto";
3 
4 package goby.common.protobuf;
5 
6 message GLogConfig
7 {
8  enum Verbosity
9  {
10  option allow_alias = true;
11 
12  QUIET = 1;
13  WARN = 2;
14  VERBOSE = 3;
15  DEBUG1 = 5;
16  DEBUG2 = 6;
17  DEBUG3 = 7;
18 
19  /* backwards compatibility with v1 */
20  VERBOSITY_QUIET = 1;
21  VERBOSITY_WARN = 2;
22  VERBOSITY_VERBOSE = 3;
23  VERBOSITY_DEBUG = 6;
24  VERBOSITY_GUI = 6;
25  }
26 
27  optional Verbosity tty_verbosity = 1
28  [default = QUIET, (goby.field).description = "Terminal verbosity"];
29 
30  optional bool show_gui = 2 [
31  default = false,
32  (goby.field).description =
33  "Set to true to display windowed NCurses GUI for terminal output."
34  ];
35 
36  message FileLog
37  {
38  required string file_name = 1;
39  optional Verbosity verbosity = 2 [
40  default = VERBOSE,
41  (goby.field).description = "Verbosity for this file log"
42  ];
43  }
44  repeated FileLog file_log = 3 [
45  (goby.field).description =
46  "Open one or more files for (debug) logging, the symbol '%1%' will "
47  "be replaced by the current UTC date and time."
48  ];
49 }