How to add debug logs in aspose.pdf

Hi,
I want to add logs in aspose.pdf. Please help me. I am using the aspose.pdf V22.3

Thank You

@Rajesh1494

Can you please share a bit more details. What type of logs you want to add? Are you talking about some instance similar to Logger?

Hi @asad.ali

I want to know what is happing in Process method.
Please find the below class code JpegDevice.

namespace Aspose.Pdf.Devices
{
public sealed class JpegDevice : ImageDevice
{
public JpegDevice();
public JpegDevice(Resolution resolution);
public JpegDevice(int quality);
public JpegDevice(PageSize pageSize);
public JpegDevice(Resolution resolution, int quality);
public JpegDevice(int width, int height);
public JpegDevice(PageSize pageSize, Resolution resolution);
public JpegDevice(int width, int height, Resolution resolution);
public JpegDevice(PageSize pageSize, Resolution resolution, int quality);
public JpegDevice(int width, int height, Resolution resolution, int quality);

    public override void Process(Page page, Stream output);
}

}

@Rajesh1494

You can find related information at the link given below:

Hello,
There is no information that how to add logs for aspose.pdf.
Please help.

@Rajesh1494

We are afraid that Aspose.PDF does not generate logs. Furthermore, as requested earlier - can you please share what kind of logs you actually want to generate? Can you please share a bit more details about your requirements?

HI @asad.ali I want to debug the Process method of JpegDevice. If debug logs are getting generated by aspose.pdf then it would be helpful for me.

@Rajesh1494

We are afraid that such feature is not available in the API. Also, it may not be possible to add this feature as API uses to throw exceptions with particular stack trace information which is encrypted. Regarding the issue that you are facing, you can please share your sample file and code snippet with us and we will investigate it in our environment.