Add log levels

Adds a basic log level implementation.