CG-2786: Add full callback function for output buffer logging