Delete logging function