Replies: 3 comments 17 replies
-
That is exactly what I meant, yes! Although it is not very important here, in a multi-class application, it always has to be indicated, in which class the logged message originated. And to the log file: We anyway always have an output folder when we run CIDER, right? So it would be no problem to place a log file there as well. Would it be much hassle to log in a log file as well as in the console (the Jupyter notebook)? In Java, one log message can go to both automatically. If you otherwise have to basically copy the code that produces the log message for both destinations, I wouldn't like it. |
Beta Was this translation helpful? Give feedback.
-
Great! Are exceptions and errors also logged in the log file now automatically? |
Beta Was this translation helpful? Give feedback.
-
I am sorry, but I still don't get how I should do this. Maybe I just don't understand the concept of errors, exceptions and their handeling not well enought. |
Beta Was this translation helpful? Give feedback.
-
Regarding the logging there are some things to discuss. Most important is the question whether or not there should be a log file and what should go in there. @JonasSchaub , you suggested to tie the logger to the cider class. So I instantiated a logger called CIDER and now there is 'CIDER' in all the logging messages instead of 'root' but I am not sure if that is what you meant.
Beta Was this translation helpful? Give feedback.
All reactions