Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[api] Expose Syslog as winston.transports.Syslog

  • Loading branch information...
commit 8f666a904bf58ac06e1405eb94717df2b2bee623 1 parent 86bdb2f
@indexzero indexzero authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/winston-syslog.js
View
6 lib/winston-syslog.js
@@ -81,6 +81,12 @@ var Syslog = exports.Syslog = function (options) {
util.inherits(Syslog, winston.Transport);
//
+// Define a getter so that `winston.transports.Syslog`
+// is available and thus backwards compatible.
+//
+winston.transports.Syslog = Syslog;
+
+//
// ### function log (level, msg, [meta], callback)
// #### @level {string} Target level to log to
// #### @msg {string} Message to log
Please sign in to comment.
Something went wrong with that request. Please try again.