fileListener/rollingfileListener is not able to log

Topics: Semantic Logging Application Block
Mar 3 at 12:02 PM
Hi,
I have downloaded sample application "aExpence" and run in-process. Application is able to create two file as setup but it is not writing any thing.
However another sample from Hands on application "Enough PI" is creating as well as writing lines to that file.
Do we need to setup anything in web environment.
I haven't modified any of above sample application.
Editor
Mar 9 at 4:26 PM
I downloaded the sample application, installed the database and the logging is working.

Here are some things to check:
  • Permissions on the file to see if there are any issues there.
  • Verify that the AppSetting "UseInprocEventTracing" is set to true is set to true. If not then no events will be captured to the in-process listeners
  • Check if the Traces table populated with any entries. If not then it would appear that no logging is occurring and the problem is not related to the file-based sinks.
  • If you debug the application does the AExpenseEvents EventSource call the WriteEvent method (i.e. IsEnabled is true)?
~~
Randy Levy
entlib.support@live.com
Enterprise Library support engineer
Support How-to