mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 14:44:15 +00:00
massive refactoring for configuration
This commit is contained in:
1 parent
791ac780f0
commit
0ca7dab49b
15 files changed
+212
-147
No files matched your search
@@ -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