Questions tagged [logging-application-block]
29 questions
1
vote
1 answer
Getting current log file content in Enterprise Library Logging
I've set up the Enterprise Library Logging Application Block to log in a file called 'app.log' residing in the execution path of my application. This application is a Windows service which runs a configuration website on top of it, where I now want…

Acrotygma
- 2,531
- 3
- 27
- 54
1
vote
2 answers
Get the file name of the current log file Enterprise Library 5.0
In MS Enterprise Library 5.0, Logging application block, at runtime, Can I get the name of the log file (Flat File Listener) to which the log is going to?

ViV
- 1,998
- 8
- 27
- 54
1
vote
1 answer
How to store the stacktrace in the database on Error with Microsoft Logging Application Block
Hi I have a database trace listener and I would like to log the stack trace on the database when I get an error. I can add the stack trace to the message pretty easily but I would prefer to add it to another column in the database table. How would I…

David
- 5,403
- 15
- 42
- 72
1
vote
1 answer
Enterprise Library Logging - Always logging using the defaultCategory and not respecting the categorySources defined in web.config
MSEL 5 has been working like a charm for us, but off late I have been trying to configure additional "categorySources" but the result is always the same. The log entry is always made using the "defaultCategory" and the following error is logged in…

Tushar Sood
- 403
- 1
- 5
- 14
1
vote
0 answers
Tracer Class for Automatic Logging of Method Entry and Exit
I want tracing in every function Entry and Exit. Say my class contains three methods MethodA MethodB MethodC... Through the Instance someone called MethodA and methodA calls MethodB and MethodB calls methodC
public class test
{
Public void…

user1312242
- 339
- 1
- 3
- 16
1
vote
0 answers
How to manage logs' preservation period using RollingFlatFileTraceListener on Enterprise Library Logging Application Block?
Enterprise Library(v5.0) Logging Application Block's Rolling Flat File Trace Listener has options to roll over the log files.
( http://msdn.microsoft.com/en-us/library/ff664768(v=pandp.50)#trace_rolling )
They are 'Time' and 'File Size'.
I can…

Tay Cleed
- 69
- 8
0
votes
2 answers
EntLib5: Logging application block , configuring via code instead of a config file?
I can't seem to find any examples for configuring EntLib5 logging application block via code.
I have it configured via a config file and its working great but i would love to create another listener via code for writing out a log file for display…

Martin
- 23,844
- 55
- 201
- 327
0
votes
2 answers
how to archive the rolling log into a different floder in ent library v4.1
I want to know what is the simplest way to archive my old logs into a folder but not in the main logging file directory.
what the hell do I mean?
for example: I logging into a file called "Operation_Log.txt" and I every day\10mb the log is "rolled"…

Clueless
- 1,190
- 2
- 14
- 30
0
votes
1 answer
How to configure Enterprise Library formatters not to remove "new lines" from the logged message?
How to configure formatters not to remove "new lines" from the logged message?
logAttribute.Message="@p1='aa'\n@p2='bb'"
I want to find in the log:
@p1='aa'
@p2='bb'
Not
@p1='aa'@p2='bb'

Roman Pokrovskij
- 9,449
- 21
- 87
- 142
0
votes
1 answer
Semantic logging vs wad logs table
I want to decide between semantic logging for azure vs traditional logging where all logs use to go to wadlogs table. Is there any specific reason we should go for one or other? what is the difference between two and which one is preferable?

user3584843
- 1
- 1
0
votes
1 answer
Sitecore integration With Logging Application Block
Is there a possibility to integrate Sitecore with Logging application block? I don't want to use the Log4Net logging rather Sitecore should use Logging application block write the log file.
Any pointer towards this will be highly…
user2740654
0
votes
1 answer
Error in "Extensibility Hands-on Labs for Microsoft Enterprise Library 5.0"
I was going through the Extensibility Hands-on Labs for Microsoft Enterprise Library 5.0 and found an error in the "Lab 2: Custom Logging Trace Listener" lesson. It applies to exercises 2,3 and 4 in the lab. I searched through the issues tracker on…
0
votes
1 answer
Enterprise Library 5.0 Logging Application Block: Log Custome Message using a DatabaseTraceListener
I am using Enterprise Library 5.0 and My task is to Log information to Database. For this I used Enterprise Library Logging Application Block with Database Trace Listener.
Now, after few days I found that I need some more information to Log into the…

user1312242
- 339
- 1
- 3
- 16
0
votes
1 answer
Get ElapsedTime From Trace
I am trying out the hands on labs for MS Enterprise Library - Logging Application block.
By adding a Trace, I get a 'message' on my 'flat file' listener saying: "Message: End Trace: Activity '6455494c-0602-45c9-8a10-052cdd39e5cb' in method…

ViV
- 1,998
- 8
- 27
- 54