Whilst the Ent Lib 5 is very easy to get logging working; when the data is logged to the event log it is in the format (as seen via XML tab> as <EventData> A B C D </>" . I need to get it in the form <EventData><Data Name=A/><Data Name=B/>....". Does anyone know if there a way of doing this using the Ent Lib 5 logging block or the like...
Enterprise Library 5 How to change event log format?
385 Views Asked by thisisthekgb At
1
There are 1 best solutions below
Related Questions in ENTERPRISE-LIBRARY
- EnterpriseLibrary.Data.NetCore(6.3.2) auto creates SqlDatabase class object instead of OleDatabase
- EnterpriseLibrary.Logging severity level setting in app.config
- .net framework 4.7.2 and Microsoft EnterpriseLibrary v5 version incompatibility?
- Error when converting VB.NET App to from 32-bit to 64-bit
- Microsoft.Practices.EnterpriseLibrary Caching Error in GetCacheManager
- EnterpriseLibraryContainer.Current.GetInstance() equivalent Updating Project from Enterprise Library 5 to 6
- Enterprise Library 5.0 Logging exception on startup
- Microsoft.Practices.EnterpriseLibrary.Logging 4.0 RollingFlatFileLogger rollover causing service to freeze
- Microsoft.Practices.EnterpriseLibrary.Data CreateDatabase error
- ParameterCache.SetParameters is not populating the parameters
- Dot net test fails to restore EnterpriseLibrary.Logging Nuget in Azure DevOps
- Asynchronous Database call to MySql Database gives error
- C# EnterpriseLibrary trouble obtaining an Output Parameter
- Want a common EnterpriseLibrary for .NET Core MVC (common database file)
- DatabaseFactory.CreateDatabase() Returning Encrypted Values
Related Questions in EVENT-LOG
- c++ read windows's event log by source
- How do I log the actual SOAP requests in XML format
- Not getting event data from windows 10 in rsyslog, using NXLog-CE as log forwarding agent
- R bupar: Get trace for each case
- WMI with Python
- Reading and formatting events from Windows Event Log
- Quickest way to get the event log description using EventRecord object, FormatDescription takes longer causing the delay in searching in description
- Converting a log.txt file to JSON using python
- Zabbix - Filter log based on contents
- Windows Event Viewer: filter for specific file extension with wildcard in xPath
- How to connect to a specific nested event log in a C# program?
- MongoDB: conditional updates to array fields in a single document
- Containers - Writing to Windows Event log from Containers throwing error "Inaccessible logs"
- Get last Windows/PC shutdown time with VBA
- Strings won't write to the console together in C#
Related Questions in ENTERPRISE-LIBRARY-5
- EnterpriseLibraryContainer.Current.GetInstance() equivalent Updating Project from Enterprise Library 5 to 6
- InvalidOperationException - The type LogWriter cannot be constructed. You must configure the container to supply this value
- Parameter discovery is not supported for connections using GenericDatabase.
- Microsoft EnterpriseLibrary Logging : Logs are not getting generated
- Where is the default installation folder of microsoft enterprise library?
- Validation with validation block
- ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
- Activation error occured while trying to get instance of type Database, error occurring only when connection string is created dynamically
- How to use ExecuteSprocAccessor of Enterprise Library Data Access Application Block to return multiple Tables?
- Could not resolve this reference. Could not locate the assembly "Microsoft.Practices.EnterpriseLibrary.Common"
- How to specify template, or tokens in filename of Enterprise Library Logging file listener
- Get defaultCategory specified in config in Enterprise Library Logging programmatically?
- Enterprise Library: Redirecting connectionStrings section does not add new ConnectionStrings to ConfigurationManager.ConnectionStrings
- Unable to cast System.Collections.Hashtable into type System.Collections.Generic.IDictionary
- Enterprise Library 5.0 - Creating custom XML template
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can customize your text formatter for writing it as xml. Something like this:
So the output is something like:
If you want to serialize an object to xml you can write a custom formatter and use it. Derive it from LogFormatter and override the Format method. And serialize your LogEntry to xml.