set log level to info in examples

add verbose flag to vm-cli example

update readme for vm-cli example
This commit is contained in:
onyx-and-iris
2022-09-29 18:05:21 +01:00
parent 3ab5daa61c
commit 6605d6e62d
9 changed files with 86 additions and 31 deletions

View File

@@ -2,9 +2,10 @@ package main
import (
"fmt"
"log"
"time"
log "github.com/sirupsen/logrus"
"github.com/onyx-and-iris/voicemeeter"
)
@@ -54,6 +55,10 @@ func (o observer) OnUpdate(subject string) {
}
}
func init() {
log.SetLevel(log.InfoLevel)
}
// main connects to Voiceemeter, registers observer for updates
// runs updates for 30 seconds and then deregisters observer.
func main() {