mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-11 13:39:18 -04:00
massive refactoring for configuration
This commit is contained in:
@@ -28,6 +28,11 @@ func writeLog(data string, level LogLevel) {
|
||||
log.Print(data)
|
||||
}
|
||||
|
||||
func Debug(format string, v ...interface{}) {
|
||||
data := fmt.Sprintf(format, v)
|
||||
writeLog("[Debug]"+data, DebugLevel)
|
||||
}
|
||||
|
||||
func Info(format string, v ...interface{}) {
|
||||
data := fmt.Sprintf(format, v)
|
||||
writeLog("[Info]"+data, InfoLevel)
|
||||
|
||||
Reference in New Issue
Block a user