新增日志输出至本地文件 app.log
				
					
				
			This commit is contained in:
		@ -11,7 +11,9 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	logger.LogInit()
 | 
			
		||||
	file, _ := os.OpenFile("./app.log", os.O_CREATE|os.O_RDWR|os.O_APPEND, 0644)
 | 
			
		||||
	defer file.Close()
 | 
			
		||||
	logger.LogInit(file)
 | 
			
		||||
 | 
			
		||||
	var conf Config.Object
 | 
			
		||||
	if len(os.Args) == 1 || os.Args[1][0] == '-' {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user