# bowshot **Repository Path**: ipvb/bowshot ## Basic Information - **Project Name**: bowshot - **Description**: bowshot a simple logger - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2019-03-21 - **Last Updated**: 2023-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Go Logger library, Aka Bowshot TODO ```go package main import ( "fmt" "os" "runtime/pprof" "time" "gitee.com/ipvb/bowshot" ) var slot bowshot.Slot func main() { f, err := os.Create(fmt.Sprintf("cpu_%d_%s.prof", os.Getpid(), time.Now().Format("2006_01_02_03_04_05"))) if err != nil { return } pprof.StartCPUProfile(f) defer pprof.StopCPUProfile() slot.InitializeEx("/tmp/slot_access.log", "/tmp/slot_error.log",DefaultSizeSettings()) for i := 0; i < 200000; i++ { slot.INFO("test %s %d", os.Args[0], i) slot.Access("POST /api/v3/internal/test %d", i) } } ```