![](/img/trans.png)
[英]How to create database for a Semantic Logging Application Block with SqlDatabaseSink
如何為語義日志設置SQL Server數據庫。 是否需要更早創建用於記錄信息的表? 如果是,則使用什么架構。 我有以下代碼: ...
[英]How to create database for a Semantic Logging Application Block with SqlDatabaseSink
如何為語義日志設置SQL Server數據庫。 是否需要更早創建用於記錄信息的表? 如果是,則使用什么架構。 我有以下代碼: ...
[英]Semantic logging vs wad logs table
我想在azure的語義日志記錄與傳統的日志記錄之間進行選擇,在傳統的日志記錄中,所有日志都用於進入wadlogs表。 我們應該選擇一個或另一個原因嗎? 兩者之間的區別是什么? ...
[英]Getting current log file content in Enterprise Library Logging
我已經設置了Enterprise Library Logging Application Block,以登錄位於應用程序執行路徑中的名為“ app.log”的文件。 此應用程序是Windows服務,在其頂部運行配置網站,我現在要在其中顯示日志文件的內容。 獲取日志文件是一個相當簡單的任務 ...
[英]Sitecore integration With Logging Application Block
是否可以將Sitecore與Logging應用程序塊集成在一起? 我不想使用Log4Net日志記錄,而Sitecore應該使用“日志記錄”應用程序塊寫入日志文件。 任何對此的指示將受到高度贊賞。 謝謝J ...
[英]Get the file name of the current log file Enterprise Library 5.0
在MS Enterprise Library 5.0中,在運行時記錄應用程序塊,是否可以獲取要將日志發送到的日志文件(平面文件偵聽器)的名稱? ...
[英]Is there a log viewer application that can read log messages from Azure Table Storage?
Microsoft最近發布了包含新語義記錄塊的 Enterprise Library 6 。 語義記錄塊可用的選項之一是能夠將日志消息寫入Windows Azure表存儲 ,這聽起來像是在基於Azure的應用程序中實現日志記錄的好方法。 不幸的是,我不確定在日志出現后如何處理日志 - 是否有 ...
[英]Error in “Extensibility Hands-on Labs for Microsoft Enterprise Library 5.0”
我正在通過Microsoft Enterprise Library 5.0的可擴展性動手實驗,在“實驗2:自定義日志記錄跟蹤偵聽器”課程中發現了一個錯誤。 它適用於練習2、3和4。 我在CodePlex網站上搜索了問題跟蹤器,但沒有任何與此錯誤相關的信息。 問題概述: 嘗試通過企 ...
[英]Enterprise Library Logging - Always logging using the defaultCategory and not respecting the categorySources defined in web.config
MSEL 5對我們來說一直是一種魅力,但是最近我一直在嘗試配置其他“ categorySources”,但結果始終是相同的。 始終使用“ defaultCategory”創建日志條目,並且在日志文件“消息:日志中沒有類別'AppLogGen'的顯式映射。日志條目為:” web.confi ...
[英]Enterprise Library 5.0 Logging Application Block: Log Custome Message using a DatabaseTraceListener
我正在使用Enterprise Library 5.0,我的任務是將信息記錄到數據庫。 為此,我使用了帶有數據庫跟蹤監聽器的企業庫日志記錄應用程序塊。 現在,幾天后,我發現我需要更多信息來登錄Logging.LOG表。 它們是:User_ID,Session_ID等。 根據業務需 ...
[英]Logging Application Block not logging to a file
我具有以下配置和代碼, writer.logentry不會引發異常,但不會創建文件。 更新1:我更改了偵聽器,刪除了事件日志並添加了平面文件日志。 我仍然看不到已創建的.log文件 我想我在配置中缺少什么? ...
[英]Get ElapsedTime From Trace
我想出來的上機實驗手中的MS企業庫-記錄應用程序塊。 通過添加跟蹤,我在“平面文件”偵聽器上收到“消息”,說:“ 消息:結束跟蹤:活動'6455494c-0602-45c9-8a10-052cdd39e5cb”位於方法“ EnoughPI.Calc.Calculator.Calculate ...
[英]Enterprise framework logging - ShouldLog not working with SourceLevel filter
我正在使用EF 5,並且嘗試使用ShouldLog方法來確定在實際記錄LogEntry之前是否將其記錄。 我的問題是,即使我有一個排除某些級別的過濾器,ShouldLog總是返回true。 過濾器有效,並且沒有記錄條目,但是ShouldLog似乎不起作用。 我正在這樣配置記錄器: ...
[英]Multiple Processes using one Logging Application Block log file
我們在ASP.NET 2.0應用程序中使用日志記錄應用程序塊,該應用程序塊通過以下方式調用: 當我們將IIS中的工作進程數增加到1以上時,日志文件會添加一個唯一的GUID,如下所示: 068aa49c-2bf6-4278-8f91-c6b65fd1ea3aApplication.l ...
[英]EntLib5: Logging application block , configuring via code instead of a config file?
我似乎找不到通過代碼配置EntLib5日志記錄應用程序塊的任何示例。 我已經通過配置文件對其進行了配置,並且運行良好,但是我很想通過代碼創建另一個偵聽器,以寫出日志文件來顯示插件的加載方式(成功與否)。 有人有任何建議或可行的示例以純代碼進行偵聽器嗎? ...
[英]What is the LogWriter.ShouldLog(LogEntry) method behaviour based on?
基於什么是LogWriter.ShouldLog(..)方法行為? 或者它的使用目的是什么? 它的文檔頁面相當稀疏,並沒有提供太多的見解。 引用它: 查詢是否記錄LogEntry shold [sic]。 ( 在企業庫的所有版本中都有相同的拼寫錯誤,讓我想知道作者是否非常 ...
[英]EntLib5: Loggin application block not logging to Event Log (exception: type LogWriter cannot be constructed)- Can anyone help?
嗨,您好, 我只是設置了Enterprise Library 5的日志記錄應用程序塊部分。我認為我已經完成了它,但它沒有記錄到事件日志,它在write方法上出錯並給我以下異常。 任何人都可以給我一張支票或告訴我我錯過了什么.. 首先,我使用winforms應用程序在Windo ...
[英]How do I specify the Username / Password for my SMTP in the Email Trace Listener used by the MS Entriprise Library Logging Block?
我使用的是Enterprise Library 4.1,並且已配置“日志記錄應用程序塊”以將我的錯誤記錄在ASP.NET MVC 3應用程序中。 一切正常,我的錯誤當前已寫入日志。 我也想通過電子郵件將錯誤發送給自己,但我們使用Google Apps,並且其SMTP服務器需要用戶名/ ...
[英]how to add some properties to log entry
我使用Microsoft Enterprise Library 5.0(記錄應用程序塊)。 我想將IP地址和用戶名保存到數據庫中。 如何將這兩列添加到Logging Application Block? ...
[英]how to archive the rolling log into a different floder in ent library v4.1
我想知道將舊日志歸檔到文件夾中而不是在主日志文件目錄中的最簡單方法是什么。 我到底是什么意思 例如:我登錄到名為“ Operation_Log.txt”的文件,並且每天\\ 10mb日志被“滾動”,並創建一個新的Operation_Log.txt”,舊文件變成“ $ CurrentTim ...
[英]How to configure Enterprise Library formatters not to remove “new lines” from the logged message?
如何配置格式化程序,不要從記錄的消息中刪除“換行”? logAttribute.Message =“ @ p1 ='aa'\\ n @ p2 ='bb'” 我想在日志中找到: 不 ...