{"action":"opened","issue":{"url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/185","repository_url":"https://api.github.com/repos/logstash/logstash-logback-encoder","labels_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/185/comments","events_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/185/events","html_url":"https://github.com/logstash/logstash-logback-encoder/issues/185","id":179463019,"number":185,"title":"LogstashTcpSocketAppender not sending content with non-string custom arguments","user":{"login":"JontyMC","id":273499,"avatar_url":"https://avatars.githubusercontent.com/u/273499?v=3","gravatar_id":"","url":"https://api.github.com/users/JontyMC","html_url":"https://github.com/JontyMC","followers_url":"https://api.github.com/users/JontyMC/followers","following_url":"https://api.github.com/users/JontyMC/following{/other_user}","gists_url":"https://api.github.com/users/JontyMC/gists{/gist_id}","starred_url":"https://api.github.com/users/JontyMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JontyMC/subscriptions","organizations_url":"https://api.github.com/users/JontyMC/orgs","repos_url":"https://api.github.com/users/JontyMC/repos","events_url":"https://api.github.com/users/JontyMC/events{/privacy}","received_events_url":"https://api.github.com/users/JontyMC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T11:07:34Z","updated_at":"2016-09-27T11:07:34Z","closed_at":null,"body":"I'm trying to use the LogstashTcpSocketAppender with custom fields using StructuredArguments eg:\r\n```\r\nlog.info(\"Test\", keyValue(\"foo\", \"bar\"));\r\n```\r\nThis works. However, when I change the value of the custom field to be a non-string, eg number or boolean, the TCP packet has no content (I've verified this):\r\n```\r\nlog.info(\"Test\", keyValue(\"foo\", 123));\r\nlog.info(\"Test\", keyValue(\"foo\", true));\r\n```\r\n\r\nHere's my appender config:\r\n\r\n```\r\n<appender name=\"logstash\" class=\"net.logstash.logback.appender.LogstashTcpSocketAppender\">\r\n    <destination>***:5045</destination>\r\n    <encoder class=\"net.logstash.logback.encoder.LogstashEncoder\">\r\n        <includeContext>false</includeContext>\r\n        <fieldNames>\r\n            <version>[ignore]</version>\r\n            <levelValue>[ignore]</levelValue>\r\n            <thread>[ignore]</thread>\r\n            <logger>logger</logger>\r\n        </fieldNames>\r\n        <provider class=\"net.logstash.logback.composite.loggingevent.ArgumentsJsonProvider\"/>\r\n    </encoder>\r\n</appender>\r\n```"}}
{"actor":{"display_login":"JontyMC"}}