github.com/kaydxh/golang@v0.0.131/pkg/logs/log.proto (about) 1 syntax = "proto3"; 2 3 package api.v1.viper.logs; 4 5 import "google/protobuf/duration.proto"; 6 7 option go_package = "github.com/kaydxh/golang/pkg/logs;logs"; 8 9 message Log { 10 Level level = 1; 11 Formatter formatter = 2; 12 string filepath = 3; 13 google.protobuf.Duration max_age = 4; 14 int64 max_count = 5; 15 google.protobuf.Duration rotate_interval = 6; 16 int64 rotate_size = 7; 17 bool report_caller = 8; 18 bool enable_goroutine_id = 9; 19 Redirct redirct = 10; 20 21 enum Level { 22 panic = 0; 23 fatal = 1; 24 error = 2; 25 warn = 3; 26 info = 4; 27 debug = 5; 28 trace = 6; 29 } 30 31 enum Formatter { 32 text = 0; 33 json = 1; 34 glog = 2; 35 } 36 37 enum Redirct { 38 stdout = 0; 39 file = 1; 40 } 41 }