Add a log func, to not mess up with the getLineAndFile func, which
because it uses runtime.Caller(), goes three stack ups. A level of
indirection was needed