package app

import (
	"github.com/go-kit/kit/log"
	"github.com/goph/emperror"
)

// Service implements the RPC server.
type Service struct {
	Logger       log.Logger
	ErrorHandler emperror.Handler
}

// NewService creates a new service object.
func NewService() *Service {
	return &Service{
		Logger:       log.NewNopLogger(),
		ErrorHandler: emperror.NewNullHandler(),
	}
}

package app

import (
	"github.com/go-kit/kit/log"
	"github.com/goph/emperror"
)

// Service implements the RPC server
type Service struct {
	logger       log.Logger
	errorHandler emperror.Handler
}

// NewService creates a new service object
func NewService(logger log.Logger, errorHandler emperror.Handler) *Service {
	return &Service{logger, errorHandler}
}

--- 
+++ 
@@ -5,13 +5,16 @@
 	"github.com/goph/emperror"
 )
 
-// Service implements the RPC server
+// Service implements the RPC server.
 type Service struct {
-	logger       log.Logger
-	errorHandler emperror.Handler
+	Logger       log.Logger
+	ErrorHandler emperror.Handler
 }
 
-// NewService creates a new service object
-func NewService(logger log.Logger, errorHandler emperror.Handler) *Service {
-	return &Service{logger, errorHandler}
+// NewService creates a new service object.
+func NewService() *Service {
+	return &Service{
+		Logger:       log.NewNopLogger(),
+		ErrorHandler: emperror.NewNullHandler(),
+	}
 }
Make logger and error handler optional
