Save owncast logs to log file. Closes #908

This commit is contained in:
Gabe Kangas
2021-05-22 19:25:33 -07:00
parent bf6a3d9e85
commit 381daaec9b
8 changed files with 79 additions and 26 deletions

15
logging/paths.go Normal file
View File

@@ -0,0 +1,15 @@
package logging
import (
"path/filepath"
"github.com/owncast/owncast/config"
)
func GetTranscoderLogFilePath() string {
return filepath.Join(config.LogDirectory, "transcoder.log")
}
func getLogFilePath() string {
return filepath.Join(config.LogDirectory, "owncast.log")
}