logger should not be accesses directly, jel_log must be used -- important when it is NULL.