Ensure default handlers are added correctly for logger