Improved logger compatability.

- Added log levels
- Added minimum log levels
- Added modes
Merge origin/master