pgina/pgina — pull request #130 by Oooska (2012-05-31 18:01:26+00:00)
Title: Update to MySQLLogger

This is a further (and hopefully final) update to issue #123.

This pull request includes the following changes originally included in Pull Request #124:
- Removed redundant SessionCache class, instead getting username from UserInformation object.
- Made Table name modifiable rather than static.
- By default, the MySQL logger will log the username entered by the username, not the name modified by plugins.
- Added option to use the modified username instead of the original (user-entered) username
- Encapsulated the default logging behavior into EventLogger.cs
- Added SessionLogger.cs, which is compatible with the old logger from 1.x/2.x

Additional new changes:
- The Session and Event modes are no longer mutually exclusive - they can both be enabled if so desired
- There are fields for the Session Table and Event Table in the configuration. Users will need to update this information when they first upgrade to this version of the plugin.
- The EventLogger's encapsulation has been cleaned up a bit further.
- The "Test.." button verifies the table's columns are correct
- Both loggers will share the same MySQLConnection so as to avoid having to make multiple connections when both are enabled.

Still to do:
- Update pgina docs