Use Log.nsf on server, alternative to print statement

Hello,

to be honest for one of our projects I want to expand the pretty cool OpenLog. ->Check out projects on openntf.org

We want to be able to switch between logging to the standard log.nsf and Openlog.

The print statement is not perfect.

On local - print statements write to the status bar and not to any log database.

Im looking for a way to append our errors or events to the current log document (on the server or local)

The NotesLog class seems not allow this requirement.

Thank you in advance.

Regards

ingo

Subject: Use Log.nsf on server, alternative to print statement.

I don’t really understand what you want to do - could you be more specific?

I’m using openlog and its really simple to make it do just about anything…

Peter Närlund, DomainPatrol

http://domainpatrol.org

Subject: RE: Use Log.nsf on server, alternative to print statement.

Hello,

OpenLog is great!

Unfortunately sometimes we are not allowed to use other log databases then the usual log.nsf

So I use a print statement in LogError of OpenLog to

allow logging to the log.

If intUseDefaultLotusNotesLog = True Then

	Print globalLogItem.message

Else

	globalLogSuccess = globalLogItem.WriteToLog(GetLogDatabase)

End If

Unfortunately does print on local only write to the status bar.

I am looking for a way to just log to the log.nsf (when I have to)

On server agents everything is fine.

Thanks for your patience and help.

Regards

Ingo

Subject: Use Log.nsf on server, alternative to print statement. - That is a really good question

That is a really good question. I would like to know the anser to that one myself.

I hope someone knows the solution to this.

Peter Närlund, DomainPatrol

http://domainpatrol.org

Subject: RE: Use Log.nsf on server, alternative to print statement. - That is a really good question

If Print is writing to the status bar, the code is running locally (on the user’s client and with the user’s permissions). If you can’t guarantee connectivity or access to an agent log database (based on alog.ntf), then how can you guarantee bot connectivity and write access to the server’s log.nsf?