mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Moving cruftier services that are only used for tests under a test repo
This commit is contained in:
3
test/logger/README.md
Normal file
3
test/logger/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Logger
|
||||
|
||||
A service which demonstrates how to use the logger
|
||||
19
test/logger/main.go
Normal file
19
test/logger/main.go
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user