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

What Should Module Logs Include? #36

Closed
ccpandhare opened this issue Jul 3, 2017 · 8 comments
Closed

What Should Module Logs Include? #36

ccpandhare opened this issue Jul 3, 2017 · 8 comments

Comments

@ccpandhare
Copy link
Collaborator

We decided to have logging. SO, what data should be logged? Where does the logged data go?
Does it remain accessible only for that session or should it get stored in a LOG file (for Node.js)?

I think the following should be logged:

  • Module Name & Options
  • Image details (dimensions,format)
  • Success/Failure in generating image

Please let me know what all I am missing.
Thanks :-)

@ccpandhare ccpandhare added this to Things to Work On in Image Sequencer GSoC Project Jul 3, 2017
@jywarren
Copy link
Member

jywarren commented Jul 3, 2017 via email

@ccpandhare
Copy link
Collaborator Author

Oh. You meant it this way? I thought it was more of a success/error log. Somewhat like syslog.
I get what you are saying.

Would we also log when module options are changed, say, in the web UI?

That is a great question. Haven't thought of it but yes, I think we should.

So the Log could actually be a set of jsons which represent the user input. Basically everything what the user runs via sequencer.SOMETHING along with options and the output as well.

Also what do you think of this:

Where does the logged data go? Does it remain accessible only for that session or should it get stored in a LOG file (for Node.js)?

?

@jywarren
Copy link
Member

jywarren commented Jul 3, 2017 via email

@ccpandhare
Copy link
Collaborator Author

So something like this, right?

log = [
    {method: "addSteps", json_q: { (data goes here) }},
    {method: "run", json_q: { (data goes here) }},
    ...
];

@ccpandhare
Copy link
Collaborator Author

I have pushed a basic draft of this to ccpandhare:development

@jywarren
Copy link
Member

jywarren commented Jul 4, 2017 via email

@ccpandhare
Copy link
Collaborator Author

Well I do think that it's a bit too much... We can store it in a different object, maybe sequencer.state ?

@jywarren
Copy link
Member

jywarren commented Jul 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Image Sequencer GSoC Project
Bugs / Clarifications
Development

No branches or pull requests

2 participants