feat: deprecated logger in client & add Logger in ClientOption (#738)
Fix #708 1. deprecated logger in client 2. add Logger in ClientOption 3. add unit test for Logger
This commit is contained in:
parent
e66c23fae4
commit
61be548803
1 changed files with 39 additions and 10 deletions
|
|
@ -58,7 +58,7 @@ type Server struct {
|
|||
type ServerOptions struct {
|
||||
// Optional instructions for connected clients.
|
||||
Instructions string
|
||||
// If non-nil, log server activity.
|
||||
// Logger may be set to a non-nil value to enable logging of server activity.
|
||||
Logger *slog.Logger
|
||||
// If non-nil, called when "notifications/initialized" is received.
|
||||
InitializedHandler func(context.Context, *InitializedRequest)
|
||||
|
|
|
|||
Loading…
Reference in a new issue