Context logging module