lazy debug logging extension