1
0
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:
V2Ray
2015-09-12 11:51:42 +02:00
parent 791ac780f0
commit 0ca7dab49b
15 changed files with 212 additions and 147 deletions

View File

@@ -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)