Questions tagged [logging-application-block]

The tag has no usage guidance.

logging-application-block
Filter by
Sorted by
Tagged with
6 votes
1 answer
2k views

What is the LogWriter.ShouldLog(LogEntry) method behaviour based on?

What is the LogWriter.ShouldLog(..) method behaviour based on? Or what is the real intention of its usage? Its documentation page is rather sparse and doesn't provide much insight. Quoting it: ...
John K's user avatar
  • 28.6k
6 votes
1 answer
7k views

EntLib5: Loggin application block not logging to Event Log (exception: type LogWriter cannot be constructed)- Can anyone help?

HI there, I just setup the logging application block part of Enterprise Library 5. I think i have done it correct but its not logging to the event log it errors on the write method and gives me the ...
Martin's user avatar
  • 24.1k
4 votes
1 answer
3k views

Enterprise Library 5.0 Logging - rollInterval

Can the Enterprise Library 5.0 Logging Application Block be configured to roll the log file every day at a specified time (e.g. at 3:00 PM)? The relevant options of rollInterval are day and midnight. ...
Allon Guralnek's user avatar
4 votes
2 answers
4k views

logging stack trace with logger

I am using Logging Application block with C#.Net 2.0. My code is logging the error information to a flat file. I have set all required configuration in web.config like listeners, formatters and ...
Anil Soman's user avatar
  • 2,457
3 votes
1 answer
2k views

Multiple Processes using one Logging Application Block log file

We use the logging application block in our ASP.NET 2.0 application which is called in the following way: public class BaseLogEntry : LogEntry { public void CloseLog() { try { ...
Gordon Thompson's user avatar
3 votes
1 answer
1k views

Is there a log viewer application that can read log messages from Azure Table Storage?

Microsoft recently released Enterprise Library 6 which contains the new Semantic Logging Block. One of the options available with the Semantic Logging Block is the ability to write log messages to ...
Mike's user avatar
  • 7,633
2 votes
2 answers
1k views

How to create database for a Semantic Logging Application Block with SqlDatabaseSink

How to set up the SQL Server database for Semantic logging. Does the table for logging information needs to be created earlier? If yes, what is the schema to be used. I have the following code : var ...
Sumesh Kuttan's user avatar
2 votes
2 answers
8k views

Logging Application Block not logging to a file

I have the following configuration and code, the writer.logentry is not throwing an exception but the file is not created. Update 1: I changed the listener, I removed eventlog and added flat file log....
Luis Valencia's user avatar
2 votes
1 answer
1k views

Enterprise framework logging - ShouldLog not working with SourceLevel filter

I'm using EF 5 and am trying to use the ShouldLog method to determine whether a LogEntry will be logged prior to actually logging it. My issue is that ShouldLog always returns true, even if I have a ...
knms's user avatar
  • 93
2 votes
3 answers
525 views

What logging listener should be used in production? (ASP.NET / Logging Application Block)

I'm using MS Enterprise Logging Application Block in an ASP.NET website. For production launch, I will set up a log listener in one of these locations: Sql Server database Windows event log Text ...
frankadelic's user avatar
  • 20.7k
1 vote
2 answers
2k views

how to add some properties to log entry

I use Microsoft Enterprise Library 5.0 (Logging Application Block). I want to save IP address and username into database. How can I add these two columns to Logging Application Block? HttpContext ...
Tiger Of Iran--Khazar Sea's user avatar
1 vote
2 answers
539 views

How to configure EmailTraceListener to avoid over-flooded mailbox (on mass problem)?

How to configure EmailTraceListener to avoid over-flooded mailbox (on mass problem)? Is it possible to setup a maximum for messages sent (per hour/per day) using logging applicaiton block ...
Roman Pokrovskij's user avatar
1 vote
2 answers
2k views

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's user avatar
  • 2,078
1 vote
1 answer
664 views

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 ...
David's user avatar
  • 5,463
1 vote
1 answer
1k views

Logging application block : database trace listener timestamp

I'm logging exception using Microsoft Enterprise Library Logging Application Block. I'm using the database trace listener. Timestamp of the log entry is in UTC time by default. I know I can have the ...
maxence51's user avatar
  • 1,014
1 vote
1 answer
2k views

How do I specify the Username / Password for my SMTP in the Email Trace Listener used by the MS Entriprise Library Logging Block?

I'm using Enterprise Library 4.1 and I've configured the Logging Application Block to log my errors in my ASP.NET MVC 3 application. Everything works just fine and my errors are currently written to ...
Justin's user avatar
  • 10.8k
1 vote
0 answers
120 views

Define when to flush log entries to database in Enterprise Library 4.1

I'm trying to create a custom database trace listener based on the FormattedDatabaseTraceListenerData and I'm having some doubts regarding its performance. What's the best way to cache in-memory ...
LuisF's user avatar
  • 564
1 vote
1 answer
659 views

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 ...
Acrotygma's user avatar
  • 2,561
1 vote
1 answer
2k views

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 "...
Tushar Sood's user avatar
1 vote
0 answers
1k views

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 ...
user1312242's user avatar
1 vote
0 answers
862 views

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)#...
Tay Cleed's user avatar
0 votes
1 answer
671 views

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 ...
user1312242's user avatar
0 votes
1 answer
175 views

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 '...
ViV's user avatar
  • 2,078
0 votes
1 answer
240 views

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's user avatar
0 votes
1 answer
277 views

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 ...
user3584843's user avatar
0 votes
1 answer
166 views

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 ...
user avatar
0 votes
1 answer
76 views

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 ...
MVVM Devotee's user avatar
0 votes
2 answers
2k views

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 ...
Martin's user avatar
  • 24.1k
0 votes
2 answers
143 views

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 "...
Clueless's user avatar
  • 1,200