mirror of
https://github.com/go-micro/go-micro.git
synced 2025-07-12 22:41:07 +02:00
Prefix logs dir micro/logs for runtime
This commit is contained in:
@ -178,7 +178,7 @@ func (r *runtime) run(events <-chan Event) {
|
|||||||
|
|
||||||
func logFile(serviceName string) string {
|
func logFile(serviceName string) string {
|
||||||
name := strings.Replace(serviceName, "/", "-", -1)
|
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
|
// Create creates a new service which is then started by runtime
|
||||||
|
Reference in New Issue
Block a user