hello,
I created xdata with the windows service type using the wizard, but I couldn't find a way to logging setup with the TTMSLoggerTextOutputHandler output. I've added TLoggingMiddleware to the server.pas file
// add logging
LoggingMiddleware := TLoggingMiddleware.Create;
LoggingMiddleware.FormatString := ':remoteaddr :method :url :statuscode - :responsetime ms';
Module.AddMiddleware(LoggingMiddleware);
and setup the output hadler text when the service module is created and also try it on the server.pas file
procedure THelloServer.ServiceCreate(Sender: TObject);
begin
RegisterTMSLogger;
TMSDefaultLogger.RegisterOutputHandlerClass(
TTMSLoggerTextOutputHandler, ['xdata.log']);
end;
where should I add RegisterOutputHandler?
thank you