Closed Nelly-Barret closed 1 year ago
I found how to set the logger level to OFF: LogManager.getLogManager().getLogger("HeidelTimeStandalone").setLevel(java.util.logging.Level.OFF);
.
In case this might help anybody.
A more specific example,
HeidelTimeStandalone heidelTime = new HeidelTimeStandalone();
java.util.logging.logger htLogger = java.utillogging.LogManager.getLogManager().getLogger("HeidelTimeStandalone");
htLogger.setLevel(java.util.logging.Level.OFF);
heidelTime = new HeidelTimeStandalone(Language.ENGLISH,DocumnetType.NARRATIVES,OutputType.TIMEML,"./config.props",POSTagger.NO);
Hi developers!
I'm using Heideltime in my project to extract dates from many texts. I'm currently working on a Java project which includes Heideltime as a Maven dependancy. Since my project has a lot of text files to analyse, the output that I get is very verbose. Indeed, for each text I got this piece of output:
When I run my project on more than tens of documents, you can easily imagine the number of lines that my output got... (see my attached screenshot, and this is just the half of my output...)
So my questions are:
de.unihd.dbs.heideltime.standalone.HeidelTimeStandalone.java
line 106 as a private field?Logger getLogger() { return this.logger; }
), such that we can manage the properties of the logger (mainly set the level of the output).Finally, I would like to congratulate developers and authors to provide such a nice and easy-to-use tool! 🎉
Thanks in advance for considering my question!
Nelly B.