pattern logging