Openlog is great. The work Paul Withers, Tim Tripcony, Nathan T Freeman, and Julian Robichaux have done in making it available for us to use in our Java programs is great too.
Sadly the “Field is too large …..” error sucks as badly as it ever has.
I’m writing large chunks of XML into the logMessage field which provokes this error. I don’t need to see the XML in the view so the solution I’ve implemented is:
Edit the OpenLogItem class;
Find the writeToLog method;
Just before the logDoc.save(true) call insert this:
Item logMsg = logDoc.getFirstItem(“logMessage”);
and recycle the logMsg Item using your favourite method.