Logging with the Entity Library 3.1

T

todd.c

I am attempting to use the entLib3.1 logging functionality and have
installed it and got it *mostly* working.
(This is on windows server 2003 with SP2, and .Net 2.0)

More specifically I would like to configure a rolling text file listener,
and have used the Enterprise Library Configuration tool to make the required
configuration changes. This all seemed nicely straight forward, but it
doesn't do what I think it should, and I'm at a loss for how to proceed.

I would like for the file to roll over every day, so I made my selections
and the configuration resulted in this:
---------------------------------------------------------
<add
fileName="c:\errorLogs\someApp.log"
rollSizeKB="5000"
timeStampPattern="yyyyMMddhh"
rollFileExistsBehavior="Increment"
rollInterval="Day"
formatter="Text Formatter"
header="----------/"
footer="----------\"
type=""
traceOutputOptions="None"

listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData,
Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0,
Culture=neutral"
name="customRoller" />
</listeners>
---------------------------------------------------------

The file shows up, and logs whatever I send to it - but it does not include
the date and does not create a new file for each day as expected.

Any advice or guidance would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top