use custom logging function instead of overriding default function (messed up dependent project, not good)