mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
add package intlog for GF internal logging usage; improve redis storage feature for gsession
This commit is contained in:
@ -227,3 +227,9 @@ func CallerFileLine() string {
|
||||
_, path, line := Caller()
|
||||
return fmt.Sprintf(`%s:%d`, path, line)
|
||||
}
|
||||
|
||||
// CallerFileLineShort returns the file name along with the line number of the caller.
|
||||
func CallerFileLineShort() string {
|
||||
_, path, line := Caller()
|
||||
return fmt.Sprintf(`%s:%d`, filepath.Base(path), line)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user