Skip to content

Commit

Permalink
Merge pull request #24 from wellsjo/patch-1
Browse files Browse the repository at this point in the history
fix README
  • Loading branch information
Ron Korving authored Mar 15, 2017
2 parents 484f622 + 50d400d commit 0479b43
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ is now supported.
var graylog2 = require("graylog2");
var logger = new graylog2.graylog({
servers: [
{ 'host': 127.0.0.1, port: 12201 },
{ 'host': 127.0.0.2, port: 12201 }
{ 'host': '127.0.0.1', port: 12201 },
{ 'host': '127.0.0.2', port: 12201 }
],
hostname: 'server.name', // the name of this host
// (optional, default: os.hostname())
Expand All @@ -56,9 +56,7 @@ logger.log("What we've got here is...failure to communicate");
Long message:

```javascript
logger.log("What we've got here is...failure to communicate", "Some men you just
can't reach. So you get what we had here last week, which is the way he wants
it... well, he gets it. I don't like it any more than you men.");
logger.log("What we've got here is...failure to communicate", "Some men you just can't reach. So you get what we had here last week, which is the way he wants it... well, he gets it. I don't like it any more than you men.");
```

Short with additional data:
Expand All @@ -70,9 +68,7 @@ logger.log("What we've got here is...failure to communicate", { cool: 'beans' })
Long with additional data:

```javascript
logger.log("What we've got here is...failure to communicate", "Some men you just
can't reach. So you get what we had here last week, which is the way he wants
it... well, he gets it. I don't like it any more than you men.",
logger.log("What we've got here is...failure to communicate", "Some men you just can't reach. So you get what we had here last week, which is the way he wants it... well, he gets it. I don't like it any more than you men.",
{
cool: "beans"
}
Expand Down

0 comments on commit 0479b43

Please sign in to comment.