basic macro logging