diff --git a/client/operation.go b/client/operation.go index 6920c57..f9ab02f 100644 --- a/client/operation.go +++ b/client/operation.go @@ -242,6 +242,9 @@ func (hc *houstonClient) launch(meta *procmeta) error { return } + exef, _ := os.Executable() + os.Symlink(path.Base(targetFile.Name()), path.Join(path.Dir(exef), path.Dir(logFileName), meta.name+".log")) + defer func() { if targetFile != nil { targetFile.Close() @@ -274,6 +277,7 @@ func (hc *houstonClient) launch(meta *procmeta) error { } else { targetFile.Close() targetFile = nextTargetFile + os.Symlink(path.Base(targetFile.Name()), path.Join(path.Dir(exef), path.Dir(logFileName), meta.name+".log")) thisFileSize = 0 } }