predef logging