Log messaging implementation for security