Add support for log levels.

Done.