Making logging more sophisticated