added logger option