github.com/v2fly/v2ray-core/v4@v4.45.2/app/log/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: app/log/config.proto 6 7 package log 8 9 import ( 10 log "github.com/v2fly/v2ray-core/v4/common/log" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type LogType int32 25 26 const ( 27 LogType_None LogType = 0 28 LogType_Console LogType = 1 29 LogType_File LogType = 2 30 LogType_Event LogType = 3 31 ) 32 33 // Enum value maps for LogType. 34 var ( 35 LogType_name = map[int32]string{ 36 0: "None", 37 1: "Console", 38 2: "File", 39 3: "Event", 40 } 41 LogType_value = map[string]int32{ 42 "None": 0, 43 "Console": 1, 44 "File": 2, 45 "Event": 3, 46 } 47 ) 48 49 func (x LogType) Enum() *LogType { 50 p := new(LogType) 51 *p = x 52 return p 53 } 54 55 func (x LogType) String() string { 56 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 57 } 58 59 func (LogType) Descriptor() protoreflect.EnumDescriptor { 60 return file_app_log_config_proto_enumTypes[0].Descriptor() 61 } 62 63 func (LogType) Type() protoreflect.EnumType { 64 return &file_app_log_config_proto_enumTypes[0] 65 } 66 67 func (x LogType) Number() protoreflect.EnumNumber { 68 return protoreflect.EnumNumber(x) 69 } 70 71 // Deprecated: Use LogType.Descriptor instead. 72 func (LogType) EnumDescriptor() ([]byte, []int) { 73 return file_app_log_config_proto_rawDescGZIP(), []int{0} 74 } 75 76 type Config struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 81 ErrorLogType LogType `protobuf:"varint,1,opt,name=error_log_type,json=errorLogType,proto3,enum=v2ray.core.app.log.LogType" json:"error_log_type,omitempty"` 82 ErrorLogLevel log.Severity `protobuf:"varint,2,opt,name=error_log_level,json=errorLogLevel,proto3,enum=v2ray.core.common.log.Severity" json:"error_log_level,omitempty"` 83 ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath,proto3" json:"error_log_path,omitempty"` 84 AccessLogType LogType `protobuf:"varint,4,opt,name=access_log_type,json=accessLogType,proto3,enum=v2ray.core.app.log.LogType" json:"access_log_type,omitempty"` 85 AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"` 86 } 87 88 func (x *Config) Reset() { 89 *x = Config{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_app_log_config_proto_msgTypes[0] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *Config) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*Config) ProtoMessage() {} 102 103 func (x *Config) ProtoReflect() protoreflect.Message { 104 mi := &file_app_log_config_proto_msgTypes[0] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 116 func (*Config) Descriptor() ([]byte, []int) { 117 return file_app_log_config_proto_rawDescGZIP(), []int{0} 118 } 119 120 func (x *Config) GetErrorLogType() LogType { 121 if x != nil { 122 return x.ErrorLogType 123 } 124 return LogType_None 125 } 126 127 func (x *Config) GetErrorLogLevel() log.Severity { 128 if x != nil { 129 return x.ErrorLogLevel 130 } 131 return log.Severity(0) 132 } 133 134 func (x *Config) GetErrorLogPath() string { 135 if x != nil { 136 return x.ErrorLogPath 137 } 138 return "" 139 } 140 141 func (x *Config) GetAccessLogType() LogType { 142 if x != nil { 143 return x.AccessLogType 144 } 145 return LogType_None 146 } 147 148 func (x *Config) GetAccessLogPath() string { 149 if x != nil { 150 return x.AccessLogPath 151 } 152 return "" 153 } 154 155 var File_app_log_config_proto protoreflect.FileDescriptor 156 157 var file_app_log_config_proto_rawDesc = []byte{ 158 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 159 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 160 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 161 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 162 0x22, 0xa7, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x0e, 0x65, 163 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 164 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 165 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 166 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x47, 167 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 168 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 169 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 170 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 171 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 172 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 173 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x50, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 174 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 175 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 176 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 177 0x79, 0x70, 0x65, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x54, 0x79, 178 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 179 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x63, 180 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x61, 0x74, 0x68, 0x2a, 0x35, 0x0a, 0x07, 0x4c, 0x6f, 181 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 182 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 183 0x46, 0x69, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 184 0x03, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 185 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x50, 0x01, 0x5a, 0x26, 0x67, 186 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 187 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 188 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 189 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 190 0x6f, 0x33, 191 } 192 193 var ( 194 file_app_log_config_proto_rawDescOnce sync.Once 195 file_app_log_config_proto_rawDescData = file_app_log_config_proto_rawDesc 196 ) 197 198 func file_app_log_config_proto_rawDescGZIP() []byte { 199 file_app_log_config_proto_rawDescOnce.Do(func() { 200 file_app_log_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_log_config_proto_rawDescData) 201 }) 202 return file_app_log_config_proto_rawDescData 203 } 204 205 var file_app_log_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 206 var file_app_log_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 207 var file_app_log_config_proto_goTypes = []interface{}{ 208 (LogType)(0), // 0: v2ray.core.app.log.LogType 209 (*Config)(nil), // 1: v2ray.core.app.log.Config 210 (log.Severity)(0), // 2: v2ray.core.common.log.Severity 211 } 212 var file_app_log_config_proto_depIdxs = []int32{ 213 0, // 0: v2ray.core.app.log.Config.error_log_type:type_name -> v2ray.core.app.log.LogType 214 2, // 1: v2ray.core.app.log.Config.error_log_level:type_name -> v2ray.core.common.log.Severity 215 0, // 2: v2ray.core.app.log.Config.access_log_type:type_name -> v2ray.core.app.log.LogType 216 3, // [3:3] is the sub-list for method output_type 217 3, // [3:3] is the sub-list for method input_type 218 3, // [3:3] is the sub-list for extension type_name 219 3, // [3:3] is the sub-list for extension extendee 220 0, // [0:3] is the sub-list for field type_name 221 } 222 223 func init() { file_app_log_config_proto_init() } 224 func file_app_log_config_proto_init() { 225 if File_app_log_config_proto != nil { 226 return 227 } 228 if !protoimpl.UnsafeEnabled { 229 file_app_log_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 230 switch v := v.(*Config); i { 231 case 0: 232 return &v.state 233 case 1: 234 return &v.sizeCache 235 case 2: 236 return &v.unknownFields 237 default: 238 return nil 239 } 240 } 241 } 242 type x struct{} 243 out := protoimpl.TypeBuilder{ 244 File: protoimpl.DescBuilder{ 245 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 246 RawDescriptor: file_app_log_config_proto_rawDesc, 247 NumEnums: 1, 248 NumMessages: 1, 249 NumExtensions: 0, 250 NumServices: 0, 251 }, 252 GoTypes: file_app_log_config_proto_goTypes, 253 DependencyIndexes: file_app_log_config_proto_depIdxs, 254 EnumInfos: file_app_log_config_proto_enumTypes, 255 MessageInfos: file_app_log_config_proto_msgTypes, 256 }.Build() 257 File_app_log_config_proto = out.File 258 file_app_log_config_proto_rawDesc = nil 259 file_app_log_config_proto_goTypes = nil 260 file_app_log_config_proto_depIdxs = nil 261 }