expose loglevel api to application