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

Change the RMLStreamer logging level #31

Open
vemonet opened this issue Aug 25, 2021 · 3 comments
Open

Change the RMLStreamer logging level #31

vemonet opened this issue Aug 25, 2021 · 3 comments

Comments

@vemonet
Copy link
Contributor

vemonet commented Aug 25, 2021

Hi @ghsnd , we would like to change the logging level to DEBUG in order to have more insights into the issues faced by the RMLStreamer (such as using functions)

The RMLStreamer is ran using the Flink CLI:

/opt/flink/bin/flink run -p 8 -c io.rml.framework.Main /mnt/RMLStreamer.jar toFile -m /mnt/mapping.rml.ttl -o /mnt/output.nt --job-name "RMLStreamer job"

We tried the following:

  • Changing the Apache Flink image config files: log4j.properties, log4j-cli.properties, log4j-console.properties to set the log4j.rootLogger property to DEBUG
  • Changing all log level to DEBUG in the RMLStreamer src/main/resources/log4j.properties file, then recompiling the RMLStreamer from the source code

But none of those attempts worked, what is the recommended way to change the logging level of the RMLStreamer?

@vemonet
Copy link
Contributor Author

vemonet commented Oct 20, 2021

@bjdmeest @gertjandemulder any idea how the log level can be changed? It would be helpful for users of RMLStreamer to help you fix and improve it.

@gertjandemulder
Copy link
Contributor

@vemonet , the logging can be configured using the log4j.logger.io.rml key in src/main/resources/log4j.properties

log4j.logger.io.rml=OFF
# no logs
log4j.logger.io.rml=FATAL
# no logs
log4j.logger.io.rml=ERROR
# logError messages are printed
log4j.logger.io.rml=WARN
# logError messages are printed
# logWarning messages are printed
log4j.logger.io.rml=INFO
# logError messages are printed
# logWarning messages are printed
# logInfo messages are printed
log4j.logger.io.rml=INFO
# logError messages are printed
# logWarning messages are printed
# logInfo messages are printed
# logDebug messages are printed
log4j.logger.io.rml=ALL
# logError messages are printed
# logWarning messages are printed
# logInfo messages are printed
# logDebug messages are printed

Hope this helps!
Kind Regards,
G

@ghsnd
Copy link
Contributor

ghsnd commented Oct 21, 2021

Hi @vemonet,
If you want to change the log level of RMLStreamer running on a Flink cluster without changing the code, you can change <Flink root>/conf/log4j.properties. You can add two lines like this:

logger.rmlstreamer.name = io.rml.framework
logger.rmlstreamer.level = DEBUG

More info can be found in the Flink docs (link).

I'll add this info to the README.md

Kind regards, Gerald

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants