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

Event logging #17

Open
sofer opened this issue Jun 30, 2017 · 7 comments
Open

Event logging #17

sofer opened this issue Jun 30, 2017 · 7 comments
Milestone

Comments

@sofer
Copy link
Member

sofer commented Jun 30, 2017

We need to make sure that we are logging all user interactions, so that at some point we can interrogate them for a better understanding of how users are interacting with the apps on the platform.

@mattlub
Copy link
Collaborator

mattlub commented Jul 1, 2017

Do you mean logging info about requests to the API and their responses? Or something different/more specific?

@sofer
Copy link
Member Author

sofer commented Jul 1, 2017

For now, it really needn't be anything more sophisticated than an http log, with a time stamp, user details (if logged in) and request details.

@des-des des-des added this to the Sprint 3 milestone Jul 27, 2017
@mattlub
Copy link
Collaborator

mattlub commented Aug 15, 2017

https://github.com/expressjs/morgan is a popular http logging with express/node package

@des-des des-des modified the milestones: Backlog, Sprint 3 Sep 6, 2017
@m4v15 m4v15 modified the milestones: Backlog, Sprint 4 Sep 11, 2017
@mattlub
Copy link
Collaborator

mattlub commented Sep 12, 2017

@des-des @m4v15 should we log to a file/a db collection/other?

e.g. morgan example logging to a new text file each day:
https://github.com/expressjs/morgan#log-file-rotation

@mattlub mattlub mentioned this issue Sep 12, 2017
2 tasks
@des-des
Copy link
Member

des-des commented Sep 13, 2017

@mattlub we cannot log directly to fs in heroku, heroku fs is ephemeral.

@mattlub
Copy link
Collaborator

mattlub commented Sep 24, 2017

ok, I don't know where we should go with this then.

  • there are logging "add-ons" in Heroku (see here) but predictably they don't offer much for free.

  • Otherwise you can implement your own "log drain" but I don't really know what that means, but must involve 'draining' the logs to somewhere, leaving us with a fair bit to do e.g. host the logs elsewhere

@des-des
Copy link
Member

des-des commented Sep 25, 2017

@sofer Are there more detailed requirements?

I expect some express logging middleware being hooked up to a mongo table will be fine for MVP @mattlub .

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

No branches or pull requests

4 participants