LD_PRELOAD logging facility for interactive programs