- حذف: Modules/xCommons/Middlewares/XRequestLogger.cs (144 خط) - دلیل: منتقل شده به xLoggingService با بهبوری 1.2) تغییر Extensions - فایل: XMiddlewareExtensions.cs - تغییر: حذف متد UseXRequestLogger() - نتیجه: کلاس اکنون خالی است 1.3) بهبود XLoggerModel - اضافه: Exception property = null - تنظیم: ترتیب Properties
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace xCommons.Models {
|
|
public class XLoggerModel {
|
|
public string Host { get; set; }
|
|
public string Path { get; set; }
|
|
public string Schema { get; set; }
|
|
public string Method { get; set; }
|
|
public string UserID { get; set; }
|
|
public string Request { get; set; }
|
|
public int StatusCode { get; set; }
|
|
public bool IsSucceed { get; set; }
|
|
public string Response { get; set; }
|
|
public string QueryString { get; set; }
|
|
public DateTime RequestedOn { get; set; }
|
|
public DateTime RespondedOn { get; set; }
|
|
public IHeaderDictionary Headers { get; set; }
|
|
public Exception Exception { get; set; } = null;
|
|
public XLoggerHttpConnection Connection { get; set; }
|
|
}
|
|
|
|
public class XLoggerHttpConnection {
|
|
public string Id { get; set; }
|
|
public string RemoteIpAddress { get; set; }
|
|
public string RemotePort { get; set; }
|
|
public string LocalIpAddress { get; set; }
|
|
public string LocalPort { get; set; }
|
|
}
|
|
} |