Initial Commit ...
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using xCommons.Extensions;
|
||||
using xLoggingService.Models;
|
||||
using xCommons.Configurations;
|
||||
|
||||
namespace xLoggingService.Extensions
|
||||
{
|
||||
public static class XLoggingServiceExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Enrich LogEntry ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <returns></returns>
|
||||
public static XLogEntry Enrich(
|
||||
this XLogEntry source,
|
||||
XAppConfiguration configuration
|
||||
)
|
||||
{
|
||||
//
|
||||
if (source.IsNull() || configuration.IsNull())
|
||||
{
|
||||
return source;
|
||||
}
|
||||
|
||||
//
|
||||
source.Application = configuration.Name;
|
||||
|
||||
//
|
||||
return source;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user