Flexible and extendable debug logger for addon developers.
About
This addon doesn't do anything on it's own. It's meant for addon developers who want a better solution than just sprinkling printf() statements everywhere, but don't want to go through the hassle of implementing their own logger.
Features
- Multiple log targets, for logging to the gamelog, a separate logfile, or via PDA message.
- Simple to define new log targets.
- Use different log targets depending on what log level the entry is.
- Logging can be enabled or disabled for any type of user-defined category, so you can keep logging to what you actually are working on right now.
- Utility function to log tables directly into the logfile.
An example/tutorial is included in the download.
Distributing
- You may distribute this script together with your addon, as long as you keep the header intact.
- You don't need to credit me in any way, though it would be of course appreciated.
- The included example shouldn't be distributed of course.
I finally got around to putting it to real use, and it really is awesome, especially when paired with a tail tool. I would go for more convention over configuration, but the basic setup is easy enough. Thankies.
Glad you like it. If I ever release a major update I'll look into improving that for sure.