github.com/gogf/gf@v1.16.9/frame/g/g_logger.go (about) 1 // Copyright GoFrame Author(https://goframe.org). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/gogf/gf. 6 7 package g 8 9 import ( 10 "github.com/gogf/gf/os/glog" 11 ) 12 13 // SetLogLevel sets the logging level globally. 14 // Deprecated, use functions of package glog or g.Log() instead. 15 func SetLogLevel(level int) { 16 glog.SetLevel(level) 17 } 18 19 // GetLogLevel returns the global logging level. 20 // Deprecated, use functions of package glog or g.Log() instead. 21 func GetLogLevel() int { 22 return glog.GetLevel() 23 }