Continuing the effort to clean up some of my code, I’ve just added a logging system to my open source code,
found on the code page. This logger is designed to be easy to use, Flexible, and extendable. It uses writer objects to handle the message logging. Writers can be added or removed at anytime to change what types of log outputs you want, without modifying the actual log calls. Here is a quick rundown of the key features:
- Flexible writer model enables multiple logging types/targets
- Log filtering system
- Very extendable
- Instance based, not Singleton (the source of all evil AKA Darth Vader)
- Singleton wrapper for Vader loven’ developers
- Written entirely in ActionScript 3 for usage in Flex and Flash projects
With this release I’m also doing some new things that I will be carrying into future code releases as well. These are:
I will be including my unit tests from now on. Because of the nature of unit tests (simple, clear, and to the point) they make for excellent usage examples that cover all aspects of a code base.
I will be releasing more formal documentation from now on. This will include more detailed information, including topics on usage and extending. It should make the code more accessible
More Focused ASDocs
I’ve included ASDocs in the past, and will continue to do so. These will be focused on what they really are, (which is a language reference), and will not include anything beyond that.
If you find it useful, and create some custom writers or filters please share!