2015-05-24 73 views

回答

1

我已經發現,可用於格式化日誌條目的令牌的列表中,在這裏它是:

{message} 
{category} 
{priority} 
{eventid} 
{severity} 
{title} 
{timestamp} 
{timestamp()} 
{timestamp(local)} 
{timestamp(FixedFormatUSDate)} 
{timestamp(FixedFormatISOInternationalDate)} 
{timestamp(FixedFormatTime)} 
{machine} 
{localMachine} 
{appDomain} 
{localAppDomain} 
{processId} 
{localProcessId} 
{processName} 
{localProcessName} 
{threadName} 
{win32ThreadId} 
{dictionary()} 
{keyvalue()} 
{newline} 
{tab} 
{property()} 

字典的示例:{字典({鍵} - {值} {換行符})}

列表從記錄應用程序塊的源代碼,它可以從here

+0

下載提取的適用於*** Ent.Lib 5.0 ***?我如何添加我的海關值,如_HttpCurrent.User.Identity.Name_? – Kiquenet

+0

我沒有任何關於5.0的信息。 – Dexion

相關問題