Add support for log levels.

A line how to log at a certain level would be good to have.