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 Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use LogConfig class.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

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

    ' Call convert method to do conversion.
    Converter.Convert("C:\MyDocument.rtf", "C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

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

        //Call Convert method to start conversion
        Converter.Convert(@"C:\MyDocument.rtf", @"C:\MyOutput.pdf");
    }
}

Constructors

LogConfig()Initializes a new instance of the LogConfig class.

Properties

LevelGets 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.
LogActionGets 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.
LogFilePathGets 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)

See Also

ceTe.DynamicPDF.Conversion

In this topic