How to force DSAPI messages to be logged?

I’ve written a DSAPI filter that I am trying to debug a bit. I can only view the status via console.log file or log.nsf. I can’t view the console directly.

My DSAPI filter output can only be seen directly. I’ve got logging turned up to level 4, but it makes no difference.

I’m using simply cout << “message” commands using the C++ API.

Any ideas for better logging? I’m working on outputing to my own text file, but was wondering if there wasn’t something easier I could do.

Thanks,

  • Matt

Subject: use AddInLogMessageText() from the C API

void LNVARARGS AddInLogMessageText(
char far *String,
STATUS AdditionalErrorCode,
<Any ‘C’ type> optional_var1, …);

Description :

This function formats a message, displays it on the standard output (server console), and appends the message as new line to the “Events” field in a Miscellaneous Events document in the Domino server or Notes client log.

The generated message has the form:

:

Subject: RE: use AddInLogMessageText() from the C API

Thanks Thomas. Just what I needed.

  • Matt

Subject: RE: use AddInLogMessageText() from the C API

Thomas,

I’ve been looking at trying to get this function to work, but it looks like it is only valid for true AddIn’s. I’m a C/C++ novice, so I could easily be implementing incorrectly, but I can’t get this to integrate into my DSAPI filter.

  • Matt

Subject: RE: use AddInLogMessageText() from the C API

Matt,If it’s any help, I use AddinLogMessageText within a DSAPI filter and it seems to work OK, reporting to console and the server log. The Domino version is 6.02CF1

regards,

Nigel