Add ability to log security-related events.