Finally I managed to get TMSLogging with Slack Output working from an iOS device.
Initialization:
procedure init_TMSLogging;
var
L_Handler: TTMSLoggerSlackWebhookOutputHandler;
webhook: string;
begin
webhook := 'https://hooks.slack.com/services/xxxxxxxxxxxxxxx';
TMSLogger.RegisterOutputHandlerClass(TTMSLoggerSlackWebhookOutputHandler, [webhook]);
L_Handler := TTMSLoggerSlackWebhookOutputHandler.Create(webhook);
TMSLogger.RegisterManagedOutputHandler(L_Handler);
TMSLogger.Clear;
end;
simple usage with TMSLogger.Info('this is a Info');
But every message is posted twice to Slack.
Even old messages which were deleted from the app appear (twice) again in slack.
What's wrong ?
Regards
Michael Jung