Hello Everybody,
Can some one help me…
I need to print all the logs in any database in place og log.nsf.
All the logs to the log.nsf but I need to print all the logs in some other db. How can I do this???
Hello Everybody,
Can some one help me…
I need to print all the logs in any database in place og log.nsf.
All the logs to the log.nsf but I need to print all the logs in some other db. How can I do this???
Subject: Use an AgentLog.nsf
Create an AgentLog.nsf database using the Agent log template on the server running the agents. Then in your script Create a new NotesLog
Dim notesLog As NotesLog
Set notesLog = New NotesLog(db.Title+" (AGENT NAME HERE))
Call notesLog.OpenNotesLog(“”, “AgentLog.nsf”)
Then each time you want to record something to the agentLog use this line. Often you can create an errorHandler to record this information using the Error information.
Call notesLog.LogAction(“INFORMATION TO WRITE TO LOG”)
Then at the end close the log. The Agent log is a lot easier to read then the standard log.nsf
Call notesLog.close
Subject: RE: Use an AgentLog.nsf
Thanks David for help!!!
Can I use this for the print statment of agents also. Means If I have an agents and it is printing the process to the log.nsf and I want to print these print statments in the any other db as you suggest Agentlog.nsf.
So Can I do this…
Subject: RE: Use an AgentLog.nsf
Sure – look at the LogAction method of the NotesLog class.
Subject: RE: Use an AgentLog.nsf
Thanks Stan!!!
I have created a new DB for log “AgentLog.nsf” and used the method like this in a agent
Dim CurrentLog As New NotesLog(“Database Log”)
Call CurrentLog.OpenNotesLog( “”, “agentlog.nsf” )
Print “document found in Database”
Call CurrentLog.Close
But the print is again going to Log.Nsf in place of “AgentLog.nsf”…
Could you please tell me what wrong I am doing in this…
Thanks in advance!!!
Subject: RE: Use an AgentLog.nsf
Call CurrentLog.LogAction(“document found in Database”)
Subject: RE: Use an AgentLog.nsf
No Luck ![]()
I have tried but still the print statments are not coming to the other database.
I have written:
Dim CurrentLog As New NotesLog("Database Log")
Call CurrentLog.OpenNotesLog( "", "agentlog.nsf" )
Call CurrentLog.LogAction("document found in PPAP")
Then the print statment is not coming to the Log.nsf and not in “Agentlog.nsf”
Not sure what wrong I am doing. Please help.!!!