Search Results for

    Show / Hide Table of Contents

    Class Logger

    Inheritance
    System.Object
    Logger
    Namespace: IronSoftware
    Assembly: IronBarCode.dll
    Syntax
    public static class Logger : Object

    Properties

    CustomLogger

    Declaration
    public static ILogger CustomLogger { get; set; }
    Property Value
    Type Description
    Microsoft.Extensions.Logging.ILogger

    LogFilePath

    Declaration
    public static string LogFilePath { get; set; }
    Property Value
    Type Description
    System.String

    LoggingMode

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

    Methods

    ClearLogs()

    Declaration
    public static void ClearLogs()

    Log(Exception, ConsoleColor)

    Declaration
    public static void Log(Exception exception, ConsoleColor color)
    Parameters
    Type Name Description
    System.Exception exception
    System.ConsoleColor color

    Log(String, ConsoleColor)

    Declaration
    public static void Log(string message, ConsoleColor color)
    Parameters
    Type Name Description
    System.String message
    System.ConsoleColor color

    Log(String, Exception, ConsoleColor)

    Declaration
    public static void Log(string message, Exception exception, ConsoleColor color)
    Parameters
    Type Name Description
    System.String message
    System.Exception exception
    System.ConsoleColor color

    LogAndThrow(Exception)

    Declaration
    public static Exception LogAndThrow(this Exception exception)
    Parameters
    Type Name Description
    System.Exception exception
    Returns
    Type Description
    System.Exception

    Events

    MessageLogged

    Declaration
    public static event Action<string> MessageLogged
    Event Type
    Type Description
    System.Action<System.String>
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronBarcode to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronBarcode free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.