Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging

This commit is contained in:
Jake Sanders
2019-12-17 16:13:36 +00:00
9 changed files with 156 additions and 64 deletions

View File

@@ -23,7 +23,7 @@ type Log interface {
// Write writes records to log
Write(Record)
// Stream log records
Stream(chan bool) <-chan Record
Stream() (<-chan Record, chan bool)
}
// Record is log record entry
@@ -174,6 +174,6 @@ func SetPrefix(p string) {
}
// Set service name
func Name(name string) {
func SetName(name string) {
prefix = fmt.Sprintf("[%s]", name)
}