Compare commits
2 Commits
v0.2.0
...
674327e0cf
Author | SHA1 | Date | |
---|---|---|---|
674327e0cf | |||
602ddb1a00 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,7 +16,7 @@
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
vendor/
|
||||
|
||||
# Go workspace file
|
||||
go.work
|
||||
|
15
build/etc/adept/adept.toml
Normal file
15
build/etc/adept/adept.toml
Normal file
@ -0,0 +1,15 @@
|
||||
log_to_file = true
|
||||
log_file = '~/adept/adept.log'
|
||||
log_level = 'info'
|
||||
|
||||
[transcoder]
|
||||
repository = '~/adept'
|
||||
interval = 15
|
||||
video_format = 'mov'
|
||||
video_codec = 'dnxhd'
|
||||
video_profile = 'dnxhr_hq'
|
||||
video_resolution = '1920x1080'
|
||||
video_framerate = 60
|
||||
video_color = 'yuv422p'
|
||||
audio_codec = 'pcm_s16le'
|
||||
|
@ -1,6 +1,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
@ -20,10 +21,12 @@ func InitLogging() *os.File {
|
||||
log.Fatalf("Error opening log file: %v", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// set logging to file handle
|
||||
log.SetOutput(fileHandle)
|
||||
}
|
||||
|
||||
// create a MultiWriter instance so we can write to both console AND file
|
||||
mw := io.MultiWriter(os.Stdout, fileHandle)
|
||||
// set our multiwriter object as the output for logging
|
||||
log.SetOutput(mw)
|
||||
|
||||
return fileHandle
|
||||
}
|
||||
|
Reference in New Issue
Block a user