Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…DME.md accordingly
  • Loading branch information...
commit f6d4d645c832c80b5a939278df3e8e2b0716379e 1 parent 6c2c36a
@indexzero indexzero authored
Showing with 3 additions and 1 deletion.
  1. +1 −0  README.md
  2. +2 −1  lib/winston/transports/loggly.js
View
1  README.md
@@ -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]
View
3  lib/winston/transports/loggly.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.