{"action":"created","issue":{"url":"https://api.github.com/repos/AuthorizeNet/sdk-php/issues/103","labels_url":"https://api.github.com/repos/AuthorizeNet/sdk-php/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/AuthorizeNet/sdk-php/issues/103/comments","events_url":"https://api.github.com/repos/AuthorizeNet/sdk-php/issues/103/events","html_url":"https://github.com/AuthorizeNet/sdk-php/issues/103","id":129920139,"number":103,"title":"disable logging","user":{"login":"apropos","id":465362,"avatar_url":"https://avatars.githubusercontent.com/u/465362?v=3","gravatar_id":"","url":"https://api.github.com/users/apropos","html_url":"https://github.com/apropos","followers_url":"https://api.github.com/users/apropos/followers","following_url":"https://api.github.com/users/apropos/following{/other_user}","gists_url":"https://api.github.com/users/apropos/gists{/gist_id}","starred_url":"https://api.github.com/users/apropos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apropos/subscriptions","organizations_url":"https://api.github.com/users/apropos/orgs","repos_url":"https://api.github.com/users/apropos/repos","events_url":"https://api.github.com/users/apropos/events{/privacy}","received_events_url":"https://api.github.com/users/apropos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-30T00:39:46Z","updated_at":"2016-01-30T17:05:02Z","closed_at":null,"body":"Is there a way to turn off logging without modifying the authorizenet/authorizenet/lib/net/authorize/util/Log.php file?  It seems strange that logging is hard coded into the source."},"comment":{"url":"https://api.github.com/repos/AuthorizeNet/sdk-php/issues/comments/177246338","html_url":"https://github.com/AuthorizeNet/sdk-php/issues/103#issuecomment-177246338","issue_url":"https://api.github.com/repos/AuthorizeNet/sdk-php/issues/103","id":177246338,"user":{"login":"ashtru","id":14973353,"avatar_url":"https://avatars.githubusercontent.com/u/14973353?v=3","gravatar_id":"","url":"https://api.github.com/users/ashtru","html_url":"https://github.com/ashtru","followers_url":"https://api.github.com/users/ashtru/followers","following_url":"https://api.github.com/users/ashtru/following{/other_user}","gists_url":"https://api.github.com/users/ashtru/gists{/gist_id}","starred_url":"https://api.github.com/users/ashtru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashtru/subscriptions","organizations_url":"https://api.github.com/users/ashtru/orgs","repos_url":"https://api.github.com/users/ashtru/repos","events_url":"https://api.github.com/users/ashtru/events{/privacy}","received_events_url":"https://api.github.com/users/ashtru/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T17:05:02Z","updated_at":"2016-01-30T17:05:02Z","body":"Trannsaction key is masked by default.The log will only show \"xxxx\". I am sure you will find so in your logs. \r\nFor masking the API Login ID you can add another tag similar to `cardCode` for `name` viz.\r\n```\r\n{\r\n    \"sensitiveTags\": [\r\n        {\r\n            \"tagName\": \"name\",\r\n            \"pattern\": \"\",\r\n            \"replacement\": \"\",\r\n            \"disableMask\": false\r\n        },\r\n```\r\n in your local AuthorizedNetSensitiveTagsConfig.json (it should be in your root folder, same as where phplog is), as given in the instructions [here](https://github.com/AuthorizeNet/sdk-php/blob/master/README.md#customizing-sensitive-tags.)\r\n\r\nPlease respond if you find any confusion in doing so.\r\n\r\nThis should be a temporary solution to your problem. Also, I will certainly look into adding methods for enabling/disabling logging and setting the log level. Thank you for your detailed explaination of the requirement."}}