Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 920 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 920 Bytes

GreeterLog

This example augments Greeter with logging.

The client is a more typical client than Greeter's client because it creates an invocation pipeline and installs an interceptor in this pipeline (the logger interceptor).

And the server is a more typical server than Greeter's server because it creates a router (dispatch pipeline) and installs a middleware in this pipeline (the logger middleware).

You can build the client and server applications with:

dotnet build

First start the Server program:

cd Server
dotnet run

In a separate window, start the Client program:

cd Client
dotnet run

You will notice the two logger categories in the output. The client shows log messages for IceRpc.ClientConnection and IceRpc.Logger.LoggerInterceptor, while the server shows log messages for IceRpc.Server and IceRpc.Logger.LoggerMiddleware.