move implementation to internal/ directory (#828)
This commit is contained in:
committed by
GitHub
parent
b9b9ad10cf
commit
908807bd59
@@ -0,0 +1,25 @@
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/zrepl/zrepl/internal/daemon/logging"
|
||||
"github.com/zrepl/zrepl/internal/logger"
|
||||
)
|
||||
|
||||
type Logger = logger.Logger
|
||||
|
||||
// All fields must be non-nil
|
||||
type Loggers struct {
|
||||
General Logger
|
||||
Control Logger
|
||||
Data Logger
|
||||
}
|
||||
|
||||
func GetLoggersOrPanic(ctx context.Context) Loggers {
|
||||
return Loggers{
|
||||
General: logging.GetLogger(ctx, logging.SubsysRPC),
|
||||
Control: logging.GetLogger(ctx, logging.SubsysRPCControl),
|
||||
Data: logging.GetLogger(ctx, logging.SubsysRPCData),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user