Add loglevel library for use during development

See #227