added parameter level to createLog