Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include timestamp in nodejs events #14

Merged
merged 2 commits into from Mar 29, 2017

Conversation

@Shwetajain148
Copy link

@Shwetajain148 Shwetajain148 commented Mar 28, 2017

No description provided.

@Shwetajain148 Shwetajain148 changed the title incude timestamp in nodejs events include timestamp in nodejs events Mar 28, 2017
@@ -58,7 +58,7 @@ var Loggly = exports.Loggly = function (options) {
bufferOptions: options.bufferOptions || {size: 500, retriesInMilliSeconds: 30 * 1000}
});

this.timestamp = options.timestamp || false;

This comment has been minimized.

@mchaudhary

mchaudhary Mar 28, 2017

@Shwetajain148 this means that timestamp is always true even if options contain it as false. The behavior we implement is by default it is true and if user specify it as false then we keep it false.

This comment has been minimized.

@Shwetajain148

Shwetajain148 Mar 29, 2017
Author

Thanks @mchaudhary for the feedback.

I have updated the condition to set the timestamp by default and also to set it to false if user specify it explicitly.

I've covered below conditions,:

User's Input explicitly Timestamp field in the log event
true Yes
false No
Not set Yes
anything except false boolean Yes
@mchaudhary mchaudhary merged commit 72406c7 into loggly:master Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.