add global log functions