Network logging defined as macro