Closed Sophietje closed 9 months ago
In GitLab by @barry.nouwt.tno.nl on Jun 24, 2021, 15:33
Hey @david.heck.iee.fraunhofer.de, the knowledge engine does print those kinds of messages and starts up with the following message:
2021-06-24 15:42:43:841 +0200 [main] INFO RestServer - Starting Knowledge Engine REST API on port 8280.
If you start it with the command you mentioned it is correct that it does not output anything at the command-line, but it is strange that there is no ke.log
file. I just tried it locally, and a new ke.log
file was created with the above message inside. Not sure what the problem could be, maybe no write rights?
You could try to leave out the -Dorg.slf4j.simpleLogger.logFile=ke.log
part and then the logging should go to the console. The command then looks like:
\knowledge-engine\smart-connector-rest-dist\target>java -cp "smart-connector-rest-dist-0.1.10.jar;dependency/*" eu.interconnectproject.knowledge_engine.rest.Main 8280
Let me know if this changes anything.
Regards, Barry
In GitLab by @david.heck.iee.fraunhofer.de on Jun 25, 2021, 06:24
Hey @barry.nouwt.tno.nl,
logging to the cli by leaving out the parameter works like a charm, thanks!
The ke.log is strange indeed. I have rechecked, I can not see it in Windows Explorer or linux subsystem for windows with ls -a, but I can see it in Windows Command Prompt using dir command.
Regards, David
In GitLab by @barry.nouwt.tno.nl on Jun 25, 2021, 06:57
Strange that the ke.log
is partly invisible...not sure what's causes that, but I am glad you can see the log messages now!
I'll close this issue now.
In GitLab by @david.heck.iee.fraunhofer.de on Jun 24, 2021, 13:29
Currently I am using the REST API locally by running:
Since simple logger is specified, in the command used to start the REST API, I expected there to be some logging information output. Like Knowledgebase registered, post forwarded or something similar.
However, there is no output in the cli and a ke.log file is nowhere to be found.