more consistent logging system