Web Service Log File Code Standard?

M

msustrick

I've been using Log4Net for some file logging in Web servics.
Exceptions are stored in a db and mailed to parties, but I've found it
helpful to use Log4Net and write to a log file with some information
like SQL or stored procedures names beign called.

My question is it an acceptable to practice to use log files on
servers? Log4Net cleans up after itself. I've heard some developers are
opposed to the practice, but I've found it helpful, especially when a
web service is first deployed.

Regards,

Gabe.
 
J

John Saunders

I've been using Log4Net for some file logging in Web servics.
Exceptions are stored in a db and mailed to parties, but I've found it
helpful to use Log4Net and write to a log file with some information
like SQL or stored procedures names beign called.

My question is it an acceptable to practice to use log files on
servers? Log4Net cleans up after itself. I've heard some developers are
opposed to the practice, but I've found it helpful, especially when a
web service is first deployed.

Servers are precisely where you need some sort of logging. How else would
you know what's going on?

I don't know Log4Net, but if it can be configured to log what's needed and
to ignore verbose details, then go ahead and use it.

John
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top