Use the custom logging function if defined
Allow passing of winston options