By filtering a log to look at errors and above you get an overview of error frequency and can quickly identify the initiating failure that might have resulted in a cascade of additional errors. SysAdmin should be notified automatically, but doesn't need to be dragged out of bed. Typically, a Fatal error only occurs once in the process lifetime, so if the log file is tied to the process, this is typically the last message in the log.Įrror: Definitely a problem that should be investigated. If it's happening daily and that's not a BFD, it has lost its meaning. Since we prefer our SysAdmins alert and well-rested, this severity should be used very infrequently. I find it more helpful to think about severities from the perspective of viewing the log file.įatal/Critical: Overall application or system failure that should be investigated immediately. I reserve these only for the most heinous errors and situations where there is guaranteed to have been data corruption or loss. Fatal - Any error that is forcing a shutdown of the service or application to prevent data loss (or further data loss).These are usually reserved (in my apps) for incorrect connection strings, missing services, etc. These errors will force user (administrator, or direct user) intervention. Error - Any error which is fatal to the operation, but not the service or application (can't open a required file, missing data, etc.).(Such as switching from a primary to backup server, retrying an operation, missing secondary data, etc.) Warn - Anything that can potentially cause application oddities, but for which I am automatically recovering.Info I want to always have available but usually don't care about under normal circumstances. Info - Generally useful information to log (service start/stop, configuration assumptions, etc).Debug - Information that is diagnostically helpful to people more than just developers (IT, sysadmins, etc.).Trace - Only when I would be "tracing" the code and trying to find one part of a function specifically.I generally subscribe to the following convention:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |