[REFACTOR] Refactored logging & added support for Microsoft.Extensions.Logging. Added test WebApi project
This commit is contained in:
@@ -7,7 +7,7 @@ public static class BasedSerilog
|
||||
/// <summary>
|
||||
/// Default output template with the extra properties that can be used for serilog sinks.
|
||||
/// </summary>
|
||||
public const string OutputTemplate = "[{Timestamp:HH:mm:ss} - {Caller}->{Assembly}] | {Level:u3}] {Message:lj}{NewLine}{Exception}";
|
||||
public const string OutputTemplate = "[{Timestamp:HH:mm:ss} {Level:u3} - {LoggerName}]{NewLine} {Message:lj}{NewLine}{Exception}";
|
||||
|
||||
public static LoggerConfiguration UseBasedExtension(this LoggerConfiguration loggerConfiguration)
|
||||
{
|
||||
@@ -20,8 +20,10 @@ public static class BasedSerilog
|
||||
/// </summary>
|
||||
public static class ExtraProperties
|
||||
{
|
||||
public const string LoggerName = "LoggerName";
|
||||
public const string AssemblyProp = "Assembly";
|
||||
public const string SourceProp = "Source";
|
||||
public const string FullNameProp = "FullName";
|
||||
public const string NamespaceProp = "Namespace";
|
||||
public const string CallerProp = "Caller";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user