logger: added assertions so i call new() correctly