{"action":"opened","issue":{"url":"https://api.github.com/repos/waza-ari/monolog-mysql/issues/10","labels_url":"https://api.github.com/repos/waza-ari/monolog-mysql/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/waza-ari/monolog-mysql/issues/10/comments","events_url":"https://api.github.com/repos/waza-ari/monolog-mysql/issues/10/events","html_url":"https://github.com/waza-ari/monolog-mysql/issues/10","id":109342539,"number":10,"title":"Logging fails if the caller does not supply all additional fields","user":{"login":"claudio-silva","id":1999803,"avatar_url":"https://avatars.githubusercontent.com/u/1999803?v=3","gravatar_id":"","url":"https://api.github.com/users/claudio-silva","html_url":"https://github.com/claudio-silva","followers_url":"https://api.github.com/users/claudio-silva/followers","following_url":"https://api.github.com/users/claudio-silva/following{/other_user}","gists_url":"https://api.github.com/users/claudio-silva/gists{/gist_id}","starred_url":"https://api.github.com/users/claudio-silva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudio-silva/subscriptions","organizations_url":"https://api.github.com/users/claudio-silva/orgs","repos_url":"https://api.github.com/users/claudio-silva/repos","events_url":"https://api.github.com/users/claudio-silva/events{/privacy}","received_events_url":"https://api.github.com/users/claudio-silva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T17:07:24Z","updated_at":"2015-10-01T17:07:24Z","closed_at":null,"body":"If I define an additional field A, I can no longer issue a call like:\r\n```php\r\n$logger->log($msg);\r\n```\r\nIt will fail with `SQLSTATE[HY093]: Invalid parameter number`\r\nI would have to **always** pass an extra array on all logging calls, like this:\r\n```php\r\n$logger->log($msg, ['A'=>'something']);\r\n```\r\nNot all logging calls in an application can be made to always supply all the extra fields, sometimes that is not even under the control of the application developer (a third-party library may be making it's own logging calls, for instance)."}}