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
Comments
we should have a standard but human-readable JSON log format, maybe one
which could be used to re-run the sequence with the same options?
Would we also log when module options are changed, say, in the web UI?
…On Mon, Jul 3, 2017 at 11:46 AM, Chinmay Pandhare ***@***.***> wrote:
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 :-)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#36>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AABfJ_QlNmznBHsjXOtQtp56OyexUFqgks5sKQzpgaJpZM4OMcoq>
.
|
Oh. You meant it this way? I thought it was more of a success/error log. Somewhat like syslog.
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 Also what do you think of this:
? |
Let's treat sequencer.log as an array and as the canonical place for this
to be stored. All other means can be built off this.
I think we could also log errors, but anytime we change the sequencer or
the settings, we might as well keep a snapshot of the current state in the
log in a runnable way, I figured!
…On Jul 3, 2017 12:26 PM, "Chinmay Pandhare" ***@***.***> wrote:
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)?
?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ1N3UqHKtVbFsoJjQ-7W4Zq36TEJks5sKRYRgaJpZM4OMcoq>
.
|
So something like this, right? log = [
{method: "addSteps", json_q: { (data goes here) }},
{method: "run", json_q: { (data goes here) }},
...
]; |
I have pushed a basic draft of this to ccpandhare:development |
Sure. Do you want to store the total state (list of steps and
configurations per step) on each log entry or do you think that's too much?
On Jul 4, 2017 12:10 PM, "Chinmay Pandhare" <notifications@github.com> wrote:
I have pushed a basic draft of this to ccpandhare:development
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ6RafjKQYjXNgqQBCxdhc41ir66Hks5sKmPsgaJpZM4OMcoq>
.
|
Well I do think that it's a bit too much... We can store it in a different object, maybe |
Cool!
…On Jul 7, 2017 12:43 PM, "Chinmay Pandhare" ***@***.***> wrote:
Well I do think that it's a bit too much... We can store it in a different
object, maybe sequencer.state ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ94wOBwBQFYiMa3ZSzguIuOJ4TKIks5sLmA8gaJpZM4OMcoq>
.
|
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:
Please let me know what all I am missing.
Thanks :-)
The text was updated successfully, but these errors were encountered: