• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Class SerilogLogger

    Implements MS ILogger on top of Serilog.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Logging.Serilog
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class SerilogLogger : IDisposable

    Constructors

    View Source

    SerilogLogger(LoggerConfiguration)

    Declaration
    public SerilogLogger(LoggerConfiguration logConfig)
    Parameters
    Type Name Description
    LoggerConfiguration logConfig

    Properties

    View Source

    SerilogLog

    Declaration
    public ILogger SerilogLog { get; }
    Property Value
    Type Description
    ILogger

    Methods

    View Source

    CreateWithDefaultConfiguration(IHostingEnvironment, ILoggingConfiguration, IConfiguration)

    Declaration
    public static SerilogLogger CreateWithDefaultConfiguration(IHostingEnvironment hostingEnvironment, ILoggingConfiguration loggingConfiguration, IConfiguration configuration)
    Parameters
    Type Name Description
    IHostingEnvironment hostingEnvironment
    ILoggingConfiguration loggingConfiguration
    IConfiguration configuration
    Returns
    Type Description
    SerilogLogger
    View Source

    CreateWithDefaultConfiguration(IHostingEnvironment, ILoggingConfiguration, IConfiguration, out UmbracoFileConfiguration)

    Creates a logger with some pre-defined configuration and remainder from config file

    Declaration
    public static SerilogLogger CreateWithDefaultConfiguration(IHostingEnvironment hostingEnvironment, ILoggingConfiguration loggingConfiguration, IConfiguration configuration, out UmbracoFileConfiguration umbracoFileConfig)
    Parameters
    Type Name Description
    IHostingEnvironment hostingEnvironment
    ILoggingConfiguration loggingConfiguration
    IConfiguration configuration
    UmbracoFileConfiguration umbracoFileConfig
    Returns
    Type Description
    SerilogLogger
    Remarks

    Used by UmbracoApplicationBase to get its logger.

    View Source

    Debug(Type, String)

    Declaration
    public void Debug(Type reporting, string message)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    View Source

    Debug(Type, String, Object[])

    Declaration
    public void Debug(Type reporting, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Dispose()

    Declaration
    public void Dispose()
    View Source

    Error(Type, Exception)

    Declaration
    public void Error(Type reporting, Exception exception)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    View Source

    Error(Type, Exception, String)

    Declaration
    public void Error(Type reporting, Exception exception, string message)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    System.String message
    View Source

    Error(Type, Exception, String, Object[])

    Declaration
    public void Error(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Error(Type, String)

    Declaration
    public void Error(Type reporting, string message)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    View Source

    Error(Type, String, Object[])

    Declaration
    public void Error(Type reporting, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Fatal(Type, Exception)

    Declaration
    public void Fatal(Type reporting, Exception exception)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    View Source

    Fatal(Type, Exception, String)

    Declaration
    public void Fatal(Type reporting, Exception exception, string message)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    System.String message
    View Source

    Fatal(Type, Exception, String, Object[])

    Declaration
    public void Fatal(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Fatal(Type, String)

    Declaration
    public void Fatal(Type reporting, string message)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    View Source

    Fatal(Type, String, Object[])

    Declaration
    public void Fatal(Type reporting, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Info(Type, String)

    Declaration
    public void Info(Type reporting, string message)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    View Source

    Info(Type, String, Object[])

    Declaration
    public void Info(Type reporting, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    IsEnabled(Type, LogLevel)

    Declaration
    public bool IsEnabled(Type reporting, LogLevel level)
    Parameters
    Type Name Description
    Type reporting
    LogLevel level
    Returns
    Type Description
    System.Boolean
    View Source

    Verbose(Type, String)

    Declaration
    public void Verbose(Type reporting, string message)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    View Source

    Verbose(Type, String, Object[])

    Declaration
    public void Verbose(Type reporting, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Warn(Type, Exception, String)

    Declaration
    public void Warn(Type reporting, Exception exception, string message)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    System.String message
    View Source

    Warn(Type, Exception, String, Object[])

    Declaration
    public void Warn(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    Exception exception
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    Warn(Type, String)

    Declaration
    public void Warn(Type reporting, string message)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    View Source

    Warn(Type, String, Object[])

    Declaration
    public void Warn(Type reporting, string message, params object[] propertyValues)
    Parameters
    Type Name Description
    Type reporting
    System.String message
    System.Object[] propertyValues
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SerilogLogger(LoggerConfiguration)
    • Properties
      • SerilogLog
    • Methods
      • CreateWithDefaultConfiguration(IHostingEnvironment, ILoggingConfiguration, IConfiguration)
      • CreateWithDefaultConfiguration(IHostingEnvironment, ILoggingConfiguration, IConfiguration, out UmbracoFileConfiguration)
      • Debug(Type, String)
      • Debug(Type, String, Object[])
      • Dispose()
      • Error(Type, Exception)
      • Error(Type, Exception, String)
      • Error(Type, Exception, String, Object[])
      • Error(Type, String)
      • Error(Type, String, Object[])
      • Fatal(Type, Exception)
      • Fatal(Type, Exception, String)
      • Fatal(Type, Exception, String, Object[])
      • Fatal(Type, String)
      • Fatal(Type, String, Object[])
      • Info(Type, String)
      • Info(Type, String, Object[])
      • IsEnabled(Type, LogLevel)
      • Verbose(Type, String)
      • Verbose(Type, String, Object[])
      • Warn(Type, Exception, String)
      • Warn(Type, Exception, String, Object[])
      • Warn(Type, String)
      • Warn(Type, String, Object[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX