LogConfig
Stores information about how logging will be done or not done at all.
public class LogConfig
Public Class LogConfig
Inheritance: ObjectLogConfig
Licensing Info
This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Examples
Example shows how to use LogConfig class.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();
}
}
Constructors
LogConfig() | Initializes a new instance of the LogConfig class. |
Properties
Level | Gets or sets one of LogLevel to indicate the amount of logs to be written. Default is LogLevel.None which means no logs will be written. |
LogAction | Gets or sets a LoggerDelegate which will be called for each log entry. Default is an internal mathod which writes to Trace for Client and Event log on Windows Service. |
LogFilePath | Gets or sets the path to a file which will be appended to for each log entry. |
Methods
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |