c# - How often should I write to the Event Log in Windows? -


i have automated process run task every hour. thinking of creating logging allow user see, if want, values being used. should in event log or create .log txt file this?

is there guideline windows event logs , whether should used errors only?

are there issues should on lookout if write event log every hour?

first of 1 line answer question

how should write event log in windows

it depends on needs , frequency @ want information. there no "one size fits all" in case logging decisions.

should in event log or create .log txt file this?

depends on requirements , going use log. consider event log, sure application have access write event log every time? (in simple words, administrative privileges).

if there no set of standards defined (assuming not writing personal use only), should set convention/standard in place organization write in event log , write in log file.

for example event log: unhanded exceptions , warnings log file: caught exception , general information (so if in deployed app client can send log file on mail)

is there guideline windows event logs , whether should used errors only

you can visit enterprise logging library:

https://msdn.microsoft.com/en-us/library/dn169621.aspx

edit:

**why downvote without reason !!! **


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -