Documentation ¶
Index ¶
- Variables
- func RegisterService(s grpc.ServiceRegistrar, service *Service)
- type Config
- type Logger
- type Service
- func (s *Service) GetLogger(ctx context.Context, _ *loggerv1.GetLoggerRequest) (*apitype.Logger, error)
- func (s *Service) ResetLogLevel(ctx context.Context, _ *loggerv1.ResetLogLevelRequest) (*apitype.Logger, error)
- func (s *Service) SetLogLevel(ctx context.Context, req *loggerv1.SetLogLevelRequest) (*apitype.Logger, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var APILevel = map[logrus.Level]apitype.LogLevel{ logrus.PanicLevel: apitype.LogLevel_PANIC, logrus.FatalLevel: apitype.LogLevel_FATAL, logrus.ErrorLevel: apitype.LogLevel_ERROR, logrus.WarnLevel: apitype.LogLevel_WARN, logrus.InfoLevel: apitype.LogLevel_INFO, logrus.DebugLevel: apitype.LogLevel_DEBUG, logrus.TraceLevel: apitype.LogLevel_TRACE, }
View Source
var LogrusLevel = map[apitype.LogLevel]logrus.Level{ apitype.LogLevel_PANIC: logrus.PanicLevel, apitype.LogLevel_FATAL: logrus.FatalLevel, apitype.LogLevel_ERROR: logrus.ErrorLevel, apitype.LogLevel_WARN: logrus.WarnLevel, apitype.LogLevel_INFO: logrus.InfoLevel, apitype.LogLevel_DEBUG: logrus.DebugLevel, apitype.LogLevel_TRACE: logrus.TraceLevel, }
Functions ¶
func RegisterService ¶
func RegisterService(s grpc.ServiceRegistrar, service *Service)
Types ¶
type Service ¶
type Service struct { loggerv1.UnsafeLoggerServer // contains filtered or unexported fields }
func (*Service) ResetLogLevel ¶
func (*Service) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.