{"action":"closed","issue":{"url":"https://api.github.com/repos/serilog/serilog/issues/565","repository_url":"https://api.github.com/repos/serilog/serilog","labels_url":"https://api.github.com/repos/serilog/serilog/issues/565/labels{/name}","comments_url":"https://api.github.com/repos/serilog/serilog/issues/565/comments","events_url":"https://api.github.com/repos/serilog/serilog/issues/565/events","html_url":"https://github.com/serilog/serilog/issues/565","id":115161648,"number":565,"title":"Additional payload limiting controls","user":{"login":"nblumhardt","id":342712,"avatar_url":"https://avatars.githubusercontent.com/u/342712?v=3","gravatar_id":"","url":"https://api.github.com/users/nblumhardt","html_url":"https://github.com/nblumhardt","followers_url":"https://api.github.com/users/nblumhardt/followers","following_url":"https://api.github.com/users/nblumhardt/following{/other_user}","gists_url":"https://api.github.com/users/nblumhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/nblumhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nblumhardt/subscriptions","organizations_url":"https://api.github.com/users/nblumhardt/orgs","repos_url":"https://api.github.com/users/nblumhardt/repos","events_url":"https://api.github.com/users/nblumhardt/events{/privacy}","received_events_url":"https://api.github.com/users/nblumhardt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/serilog/serilog/labels/core","name":"core","color":"009800"},{"url":"https://api.github.com/repos/serilog/serilog/labels/up-for-grabs","name":"up-for-grabs","color":"fbca04"},{"url":"https://api.github.com/repos/serilog/serilog/labels/v2","name":"v2","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-04T22:15:36Z","updated_at":"2016-04-29T03:48:30Z","closed_at":"2016-04-29T03:48:30Z","body":"Serilog allows destructuring depth to be controlled, which prevents the accidental serialization of some massive object graphs.\r\n\r\nThe two remaining causes of unanticipated payloads are:\r\n\r\n1. Very long strings\r\n2. Very large arrays or dictionaries\r\n\r\nSignificant thought will need to go into the implications and design, but it seems like the v2 release is a good time to consider introducing _maximum string length_ and _maximum collection count_ controls on `LoggerDestructuringConfiguration`.\r\n\r\nThese would either default to \"off\", or to some very large/permissive values."}}