Logging support added to GEMVC trunk
I have not created an official release (one is coming very soon just trying to get a demo application created) but there are new features in the gemvc trunk that may be of interest.
1) The messaging.xml and services.xml have been combined into one file. Your entries will now look like:
2) Logging has been added.
With Flex there is no way to globally catch errors. You have to manually put try/catch blocks everywhere. GEMVC has been modified to help with this by catching any errors that occur in a service call handler (unless you use callLater()). It will display the standard GEMVC alert box (or the one you overrode MVCApplication with) and will log it back to the server if you have a logging Service. If your logger supports mail you can mail them as well.
All you have to do to take advantage of this feature is:
a) Have a CF logging service that has a log function that accepts a string message and int logLevel.
b) Add this to your services.xml file:
Notice that you can have multiple loggers.
You may want to overload the getInfoLogLevel and getErrorLogLevel methods if the GEMVC defaults do not match your log levels (currently 4 and 1 respectively).
More to come

There are no comments for this entry.
[Add Comment]