Nice one Elliot! Very cool. I've added this to the repository (once these unit tests pass)
Mark On Mon, Dec 14, 2009 at 5:06 PM, Elliott Sprehn <[email protected]> wrote: > Here's a decorator for the pluggable cache to be included in Transfer > that will let you log to a very simple space separated file for > processing. > > In the future an AIR application that continually tails the log file > could generate pretty graphs to allow debugging servers more easily. > > An example configuration that uses the EHCache is: > > <defaultcache > provider="transfer.com.cache.provider.LoggableCacheDecorator"> > <setting name="provider" > value="transfer.com.cache.provider.EHCacheProvider"/> > <setting name="logFile" value="/myapp/logs/transfer-cache.log"/> > <setting name="config" value="/myapp/config/transfer/ehcache.xml"/> > </defaultcache> > > Pass provider and logFile to configure the decorator and all other > parameters will be passed to the decorated cache provider. > > The logging format is a very simple space separated log that's > designed to be *super* simple to parse with tools. > > ex. 14/12/2009 00:48:48.113 Have attendee.Attendee 61 yes > > Means Transfer called provider.have("attendee.Attendee",61) and the > return value was yes (true). > > Enjoy! > > -- > Before posting questions to the group please read: > > http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer > > You received this message because you are subscribed to the Google Groups > "transfer-dev" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/transfer-dev?hl=en > > > > -- E: [email protected] T: http://www.twitter.com/neurotic W: www.compoundtheory.com -- Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en
