github.com/gogf/gf/v2@v2.7.4/frame/g/g_setting.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/v2/internal/utils"
    11  )
    12  
    13  // SetDebug enables/disables the GoFrame internal logging manually.
    14  // Note that this function is not concurrent safe, be aware of the DATA RACE,
    15  // which means you should call this function in your boot but not the runtime.
    16  func SetDebug(enabled bool) {
    17  	utils.SetDebugEnabled(enabled)
    18  }