471,318 Members | 3,223 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

C# log file

Hi,
1. Which C# log file library is recommended ?
2. Does it generate an HTML or XML log file ?
Thanks

-- Dani

Jan 9 '06 #1
4 18530
System.Diagnostics.EventLog namespace is the most reliable way to log
events. You can alternatively use various classes in the System.Xml
namespace to log to an XML file. Such class for example; is the
XmlTextWriter.

I am not aware of any HTML log creation class/library available.

Cheers
Simon.

"danip" <da***@ecmed.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,
1. Which C# log file library is recommended ?
2. Does it generate an HTML or XML log file ?
Thanks

-- Dani

Jan 9 '06 #2
danip wrote:
1. Which C# log file library is recommended ?
2. Does it generate an HTML or XML log file ?


I haven't used Log4Net, but I've used its Java equivalent a fair
amount.
See http://logging.apache.org/log4net/

Jan 9 '06 #3
danip wrote:
Hi,
1. Which C# log file library is recommended ?
2. Does it generate an HTML or XML log file ?
Thanks

-- Dani


If it were me, I'd define a structure for an xml log and create my own.
Then, make an XLST (xml stylesheet) for viewing it. It could make for
a very nice looking log.

Scott
Jan 13 '06 #4
Hello Jon Skeet [C# MVP],
danip wrote:
1. Which C# log file library is recommended ?
2. Does it generate an HTML or XML log file ?

I haven't used Log4Net, but I've used its Java equivalent a fair
amount.
See http://logging.apache.org/log4net/


I'd recommend log4Net too.
its very flexible from what i gather.
haven't used it myself but i've read about it.
Jan 13 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by matt | last post: by
reply views Thread by chris | last post: by
5 posts views Thread by simon place | last post: by
7 posts views Thread by Joseph | last post: by
3 posts views Thread by StGo | last post: by
1 post views Thread by Mika M | last post: by
reply views Thread by thjwong | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.