Moving cruftier services that are only used for tests under a test repo

This commit is contained in:
Janos Dobronszki
2020-10-15 16:54:27 +02:00
parent 7c2f9737cb
commit d86531e5e9
37 changed files with 0 additions and 0 deletions

3
test/logger/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Logger
A service which demonstrates how to use the logger

19
test/logger/main.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"time"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
)
func main() {
go func() {
for {
logger.Infof("This is a log line %s", time.Now())
time.Sleep(1 * time.Second)
}
}()
service.Run()
}