custom log policy