Skip to content

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