Click here to Skip to main content
15,897,518 members

Survey Results

How do you log errors in your applications?

Survey period: 29 Jan 2018 to 5 Feb 2018

Knowing you have a problem is the first step in fixing it.

OptionVotes% 
I log to a third party service (eg errlog.io)1148.86
I log to our own logging service26420.51
I log errors to syslog or the native OS logging system18814.61
I log errors to a database34626.88
I log errors to a file63449.26
I log errors via a messaging service such as email, HipChat etc1259.71
I log errors using other methods917.07
I don't log errors in my applications35127.27
Errors? My applications don't produce errors!947.30
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralOwn Logging System / Database with retention time Pin
Mike (Prof. Chuck)28-Jan-18 22:26
professionalMike (Prof. Chuck)28-Jan-18 22:26 
GeneralLogging Pin
Simon_Whale28-Jan-18 22:04
Simon_Whale28-Jan-18 22:04 
GeneralOwn Log file always rocks...! Pin
koolprasad200328-Jan-18 19:38
professionalkoolprasad200328-Jan-18 19:38 
GeneralRe: Own Log file always rocks...! Pin
theoldfool30-Jan-18 1:41
professionaltheoldfool30-Jan-18 1:41 
GeneralIf only I knew... Pin
Sander Rossel28-Jan-18 19:37
professionalSander Rossel28-Jan-18 19:37 
GeneralRe: If only I knew... Pin
Mike (Prof. Chuck)29-Jan-18 0:33
professionalMike (Prof. Chuck)29-Jan-18 0:33 
GeneralRe: If only I knew... Pin
Sander Rossel29-Jan-18 0:38
professionalSander Rossel29-Jan-18 0:38 
GeneralRe: If only I knew... Pin
Mike (Prof. Chuck)29-Jan-18 1:19
professionalMike (Prof. Chuck)29-Jan-18 1:19 
Well "everything" is a term you need to define. It does not exist in my universe. The closest would be a log line for every code line "reached line 314", "reached line 315", ... which makes no sense as there could not be any code beside the log lines themselves.

The main problem is the rolling file architecture and no filter options.
In verbose mode we log up to 50 lines per second, depends on what the app does at a specific moment.
still... in a database log system with smart filters and a STABLE STRUCTURE of your log lines, we find errors in minutes (if not in seconds as we have written a log viewer application that applies multi-column-multi-term-regex filters and we can save those filters as templates).
So we have a set of ~15 filters that cover our most common error scenarios and states the app might have (online mode, offline mode, connection breaks, invalid id's, etc etc).
We go through the filters and within a minute we have a clear picture of what happened.
Oh, our log size is normally between one and three MILLIONS log lines.
No problem.

GeneralRe: If only I knew... Pin
Sander Rossel29-Jan-18 6:13
professionalSander Rossel29-Jan-18 6:13 
GeneralRe: If only I knew... Pin
Mike (Prof. Chuck)29-Jan-18 7:40
professionalMike (Prof. Chuck)29-Jan-18 7:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.