()
| 804 | } |
| 805 | |
| 806 | func (c *Config) GetLogFiles() (accessFile, errorFile string) { |
| 807 | if c.LogConfig == nil { |
| 808 | c.LogConfig = &conf.LogConfig{ |
| 809 | LogLevel: "info", |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | return c.LogConfig.AccessLog, c.LogConfig.ErrorLog |
| 814 | } |
| 815 | |
| 816 | func NewConfig(config string, exclude []string) (*Config, error) { |
| 817 | var xrayConfig Config |