Logging in aspose libraries

Hi!

Could you please say how can I configure Aspose libraries logs?

I am using:
org.slf4j:slf4j-api:1.7.13
log4j:log4j:1.2.17
org.slf4j:slf4j-log4j12:1.7.13
I am trying to show aspose pdf and words debug information using:
com.aspose:aspose-pdf:10.9.0
com.aspose:aspose-words:15.10.0 jdk16
I log4j configuration:
log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.logger.com.temporary=DEBUG
log4j.logger.aspose.pdf=DEBUG
log4j.logger.com.aspose.pdf=DEBUG
log4j.logger.com.aspose.words=DEBUG
I have created logger:
private static Logger logger = LoggerFactory.getLogger(Main.class);
I am using next code to try to see any logging message:
BasicConfigurator.resetConfiguration();
BasicConfigurator.configure();
PropertyConfigurator.configure(Main.class.getClassLoader().getResourceAsStream(“logging.properties”));

com.aspose.words.Document wordDocument = new com.aspose.words.Document(“D:\Projects\GroupDocs\Apps\xFiles\files\GroupDocs_Demo.docx”);
wordDocument.save(File.createTempFile(“asd”, “test.html”).getAbsolutePath(), com.aspose.words.SaveFormat.HTML);


Document document = new Document(“D:\Projects\GroupDocs\Apps\xFiles\files\GroupDocs_Demo.pdf”);
document.save(File.createTempFile(“asd”, “test.html”).getAbsolutePath(), SaveFormat.Html);
But it doen’t provide any debug (or error or warning) messages.
Logger works with next code: logger.debug(“Hello! ‘debug’ method called”);
Does any Aspose libraries have opportunities to look what is happening inside Aspose methods?

Hi,


Thanks for contacting support.

Aspose.Pdf for Java is obfuscated and you cannot see the operations being performed inside it. However when any problem occurs, a detailed StackTrace is generated and one can get an idea about the issue being generated. Furthermore, you can generate log when performing PDF to PDF/A conversion or PDF/A validation. In case you have some other requirements, please share some further details, so we may reply accordingly.

You may consider visiting following links for information on