Permalink
Browse files

[api doc] Update Loggly transport to support JSON logging. Update REA…

…DME.md accordingly
  • Loading branch information...
1 parent 6c2c36a commit f6d4d645c832c80b5a939278df3e8e2b0716379e @indexzero indexzero committed Aug 9, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −0 README.md
  2. +2 −1 lib/winston/transports/loggly.js
View
@@ -315,6 +315,7 @@ The Loggly transport is based on [Nodejitsu's][5] [node-loggly][6] implementatio
* __auth__: The authentication information for your Loggly account. *[required with inputName]*
* __inputName:__ The name of the input this instance should log to.
* __inputToken:__ The input token of the input this instance should log to.
+* __json:__ If true, messages will be sent to Loggly as JSON.
*Metadata:* Logged in suggested [Loggly format][2]
@@ -39,7 +39,8 @@ var Loggly = exports.Loggly = function (options) {
this.client = loggly.createClient({
subdomain: options.subdomain,
- auth: options.auth || null
+ auth: options.auth || null,
+ json: options.json || false
});
if (options.inputToken) {

0 comments on commit f6d4d64

Please sign in to comment.