mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-24 22:26:54 +02:00
Runtime logs (#1447)
* Runtime logs * Slightly broken * Pushing for diff * Log trailing works locally * LogsOptions * Comments and streamcount support for local logs * Adding kubernetes logs * Fixing k8s logs * K8s fixes * StreamCount is now nuked * PR comments * PR comments again * Fix typo
This commit is contained in:
@ -35,6 +35,19 @@ type Runtime interface {
|
||||
Start() error
|
||||
// Stop shuts down the runtime
|
||||
Stop() error
|
||||
// Logs
|
||||
Logs(*Service, ...LogsOption) (LogStream, error)
|
||||
}
|
||||
|
||||
// Stream returns a log stream
|
||||
type LogStream interface {
|
||||
Chan() chan LogRecord
|
||||
Stop() error
|
||||
}
|
||||
|
||||
type LogRecord struct {
|
||||
Message string
|
||||
Metadata map[string]string
|
||||
}
|
||||
|
||||
// Scheduler is a runtime service scheduler
|
||||
|
Reference in New Issue
Block a user