Add logging levels

Close issue #8