View Source
Class SerilogLogger
Implements MS ILogger on top of Serilog.
Inheritance
System.Object
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
Methods
View Source
CreateWithDefaultConfiguration(IHostingEnvironment, ILoggingConfiguration, IConfiguration)
Declaration
public static SerilogLogger CreateWithDefaultConfiguration(IHostingEnvironment hostingEnvironment, ILoggingConfiguration loggingConfiguration, IConfiguration configuration)
Parameters
Returns
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
Returns
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
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 |
|