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:
parent
0f2006ac50
commit
ac8b6f944e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user