1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Prefix logs dir micro/logs for runtime

This commit is contained in:
Asim Aslam 2020-04-11 11:15:01 +01:00
parent 0f2006ac50
commit ac8b6f944e

View File

@ -178,7 +178,7 @@ func (r *runtime) run(events <-chan Event) {
func logFile(serviceName string) string {
name := strings.Replace(serviceName, "/", "-", -1)
return filepath.Join(os.TempDir(), fmt.Sprintf("%v.log", name))
return filepath.Join(os.TempDir(), "micro", "logs", fmt.Sprintf("%v.log", name))
}
// Create creates a new service which is then started by runtime