Logging operator executions
nico_timotius
MemberPosts:4Contributor I
inHelp
Hi RapidMiner Community,
I've managed to deploy my process into a web service using RapidMiner Server. I think it will be beneficial if the web service can have a log just like a log4j. I am thinking to create a log for the web service so it will show something like this
I think it will be helpful to solve issues found if the web service used in a production environment. I am aware there are log related operators such as Log, Log to Data but it can only manage to capture one information from an operator.
Do you have any suggestion of ways to achieve that kind of need?
Thank you
TN
I've managed to deploy my process into a web service using RapidMiner Server. I think it will be beneficial if the web service can have a log just like a log4j. I am thinking to create a log for the web service so it will show something like this
INFO [2019-03-29 14:55:56] Start A Prediction Process
INFO [2019-03-29 14:55:56] Input Data : {AAAA,BBBB}
信息(2019-03-29 14:55:56)预处理数据
INFO [2019-03-29 14:55:59] Load Model
ERROR [2019-03-29 14:55:59] SomethingWrongWithTheModelException
INFO [2019-03-29 14:55:59] End A Prediction Process
Do you have any suggestion of ways to achieve that kind of need?
Thank you
TN
Tagged:
0
Best Answer
-
IngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University ProfessorPosts:1,751RM FounderHi,The process below shows an example about how to use both logging mechanisms. You can see the result if you activate the "Log" panel in the menu "View" - "Show Panel...". I also used some macros in those messages to demonstrate how to create those dynamically.
The only thing I would like to add is that I personally would prefer
operator.getLogger().log(Level level, String text);
instead of the getLog() method Martin has mentioned. But both should work.Hope this helps,
Ingo
<?xml version = " 1.0 " encoding = " utf - 8 " ?> <过程版本sion="9.2.001">
7
Answers
Best,
Martin
Dortmund, Germany
Thanks for the answer. I don't think i managed to use the mentioned operator properly. Is there any tutorial? I can't find the tutorial on the operator.
Best,
TN
Thanks for the help. What a great community
Best Regards,
TN