config.proto 742 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package v2ray.core.app.log;
  3. option csharp_namespace = "V2Ray.Core.App.Log";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/app/log";
  5. option java_package = "com.v2ray.core.app.log";
  6. option java_multiple_files = true;
  7. import "common/log/log.proto";
  8. import "common/protoext/extensions.proto";
  9. enum LogType {
  10. None = 0;
  11. Console = 1;
  12. File = 2;
  13. Event = 3;
  14. }
  15. message LogSpecification {
  16. LogType type = 1;
  17. v2ray.core.common.log.Severity level = 2;
  18. string path = 3;
  19. }
  20. message Config {
  21. option (v2ray.core.common.protoext.message_opt).type = "service";
  22. option (v2ray.core.common.protoext.message_opt).short_name = "log";
  23. reserved 1,2,3,4,5;
  24. LogSpecification error = 6;
  25. LogSpecification access = 7;
  26. }