Skip to content

Timestamps in Log #1016

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

Closed
wants to merge 2 commits into from
Closed

Timestamps in Log #1016

wants to merge 2 commits into from

Conversation

gshankar
Copy link

@gshankar gshankar commented Sep 5, 2012

Hey there,

I've added a configurable option to the logger to allow for human-readable timestamps to be output to the socket.io log.

It's really helped us when debugging problems with our app so I thought it was something that others could use as well.

I've defaulted timestamps to be off initially unless you set 'log timestamps' to be true.

I was going to write a test for this but couldn't think of one that wasn't brittle, i.e. I wanted to look for indexOf the current Year in the data of the console output but even that could break at the end of the year. Probably a stupid thing to worry about though so if you want me to add a test or have an idea on how I can test for it better please let me know.

Cheers,
Ganesh

@travisbot
Copy link

This pull request fails (merged 4681037 into 21a3733).

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants