maybe "if log enabled" can be added