diff --git a/index.js b/index.js
index 2006486532307905dab8acacb677791117fd19be..1491b5cfac08b15e2e43d70d0fcb55fbb2661c78 100644
--- a/index.js
+++ b/index.js
@@ -140,7 +140,7 @@ function Log (options) {
         hostname: this.hostname,
         facility: this.name,
         level:level
-        })),this.graylog.port,this.graylog.server,function(error){})
+        })),this.options.graylog.port,this.options.graylog.server,function(error){})
   }
   return this
 }