logger must be initialized