LogConfig.LogFilePath Property

Gets or sets the path to a file which will be appended to for each log entry.

public string LogFilePath { get; set; }
Public Property LogFilePath As String

Property Value

String

Licensing Info

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use LogFilePath property.
Imports ceTe.DynamicPDF.Printing

Module Module1

Sub Main()

    PrintJob.Logging.Level = LogLevel.Information
    PrintJob.Logging.LogFilePath = "C:\temp\LogFile.txt"

    ' Create a print job containing the first four pages of the PDF
    Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf", 1, 4)

    ' Print the job
    MyPrintJob.Print()

End Sub
 
End Module
using ceTe.DynamicPDF.Printing;

class MyClass
{
    static void Main()
    {
        PrintJob.Logging.Level = LogLevel.Information;
        PrintJob.Logging.LogFilePath = @"C:\temp\LogFile.txt";

        // Create a print job containing the first four pages of the PDF
        PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf", 1, 4);

        // Print the job
        printJob.Print();
    }
}

Remarks

If LogAction is to be used then this should not be assigned. Setting this property also assign the LogAction with an internal method for logging to file.

See Also

LogConfig
ceTe.DynamicPDF.Printing

In this topic