OpenNTF.org - OpenLog

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: OpenLog (Managed by Julian Robichaux)
Actions:


Response
SubjectVote +1
Created 06/13/2007 07:29 PM by Peter Herrmann.
Modified<none> by <none>.
Body

Great request. I have done this in my own code before but I now use OpenLog for every new app.

For Julian: the only challenge I had to deal with was I wanted to write a TEXT field but sometimes my
string message would end up being larger than 64Kb. I ended up flushing the current logentry to disk
(doc.save) if the message to append to the logentry would make it >64KB. I would then start a new log
entry and close it on Terminate. I didn't handle the case where you wanted to append one string >64Kb
to the logentry but it wouldn't be difficult if you wanted to handle that too.



Feedback

Hide details for Add function to add to a logentry ( on 06/02/2007 05:17:06 PM )Add function to add to a logentry ( on 06/02/2007 05:17:06 PM )
. . Class to add (Agent) logging (Jan Schulz on 06/23/2007 02:15:22 PM )
. . Vote +1 (Peter Herrmann on 06/13/2007 07:29:25 PM )
Check out other projects
Switch to project: