{"action":"created","issue":{"url":"https://api.github.com/repos/maxnachlinger/log4js-node-amqp/issues/1","labels_url":"https://api.github.com/repos/maxnachlinger/log4js-node-amqp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/maxnachlinger/log4js-node-amqp/issues/1/comments","events_url":"https://api.github.com/repos/maxnachlinger/log4js-node-amqp/issues/1/events","html_url":"https://github.com/maxnachlinger/log4js-node-amqp/issues/1","id":81496759,"number":1,"title":"raw message in publish?","user":{"login":"mmjames","id":12628219,"avatar_url":"https://avatars.githubusercontent.com/u/12628219?v=3","gravatar_id":"","url":"https://api.github.com/users/mmjames","html_url":"https://github.com/mmjames","followers_url":"https://api.github.com/users/mmjames/followers","following_url":"https://api.github.com/users/mmjames/following{/other_user}","gists_url":"https://api.github.com/users/mmjames/gists{/gist_id}","starred_url":"https://api.github.com/users/mmjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmjames/subscriptions","organizations_url":"https://api.github.com/users/mmjames/orgs","repos_url":"https://api.github.com/users/mmjames/repos","events_url":"https://api.github.com/users/mmjames/events{/privacy}","received_events_url":"https://api.github.com/users/mmjames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-27T15:30:01Z","updated_at":"2015-05-27T17:12:09Z","closed_at":null,"body":"we have a very specific format via the layout pattern that is being parsed for use in elastic search.  this is broken by the way the publish function adds it's own custom json format.  I am curious if you think it would be useful to allow an option to just publish the raw message through to the exchange?  For example the below works for our use case since most of this additional data is contained in the layout pattern.\r\n\r\n<pre><code>\r\nwhile (logEventBuffer.length > 0) {\r\n\t\t\ttoLog = logEventBuffer.shift();\r\n\t\t\t_exchange.publish(\r\n\t\t\t\t_options.publish.routingKey,\r\n\t\t\t\tsetObjectDefaults(\r\n\t\t\t\t\ttoLog.data\r\n\t\t\t\t\t, _options.additionalInfo),\r\n\t\t\t\t_options.publish\r\n\t\t\t);\r\n\t\t}\r\n</code></pre>\r\n\r\nThanks,\r\n   Matt"},"comment":{"url":"https://api.github.com/repos/maxnachlinger/log4js-node-amqp/issues/comments/106000648","html_url":"https://github.com/maxnachlinger/log4js-node-amqp/issues/1#issuecomment-106000648","issue_url":"https://api.github.com/repos/maxnachlinger/log4js-node-amqp/issues/1","id":106000648,"user":{"login":"maxnachlinger","id":1207210,"avatar_url":"https://avatars.githubusercontent.com/u/1207210?v=3","gravatar_id":"","url":"https://api.github.com/users/maxnachlinger","html_url":"https://github.com/maxnachlinger","followers_url":"https://api.github.com/users/maxnachlinger/followers","following_url":"https://api.github.com/users/maxnachlinger/following{/other_user}","gists_url":"https://api.github.com/users/maxnachlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/maxnachlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxnachlinger/subscriptions","organizations_url":"https://api.github.com/users/maxnachlinger/orgs","repos_url":"https://api.github.com/users/maxnachlinger/repos","events_url":"https://api.github.com/users/maxnachlinger/events{/privacy}","received_events_url":"https://api.github.com/users/maxnachlinger/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T17:12:09Z","updated_at":"2015-05-27T17:12:09Z","body":"Actually the change was trivial, please give the branch a try:\r\n``npm i maxnachlinger/log4js-node-amqp#interceptor --save``"}}