Search Results for

    Show / Hide Table of Contents

    Class Logger

    Provides functionality for developers to view debug logs and export log files from IronPdf.

    Inheritance
    System.Object
    Logger
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: IronPdf.Logging
    Assembly: IronPdf.dll
    Syntax
    public static class Logger

    Properties

    LogFilePath

    Setting a log path produces ‘log files’ which may be vey useful for debugging in production or providing to Iron Software support when reporting an issue.

    LogFilePath may be set to a directory name or a full file name.

    Setting LogFilePath = null will turn off log files.

    Declaration
    public static string LogFilePath { get; set; }
    Property Value
    Type Description
    System.String
    See Also
    ClearLogFiles()

    LoggingMode

    Activate or disable detailed developer messages sent to your choice of location in the IDE or application console.

    Declaration
    public static Logger.LoggingModes LoggingMode { get; set; }
    Property Value
    Type Description
    Logger.LoggingModes

    Methods

    ClearLogFiles()

    Removes any Iron Software log files at the LogFilePath.

    Declaration
    public static void ClearLogFiles()
    See Also
    LogFilePath

    Events

    MessageLogged

    Event handler to intercept logged messages.

    Declaration
    public static event Action<string> MessageLogged
    Event Type
    Type Description
    System.Action<System.String>
    ☀
    ☾
    In This Article
    Back to top
    Install with Nuget