Click here to Skip to main content
15,879,239 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Logging Pin
Calin Negru5-Jul-22 21:09
Calin Negru5-Jul-22 21:09 
GeneralRe: Logging Pin
Gerry Schmitz5-Jul-22 8:24
mveGerry Schmitz5-Jul-22 8:24 
GeneralRe: Logging Pin
Calin Negru6-Jul-22 4:53
Calin Negru6-Jul-22 4:53 
GeneralRe: Logging Pin
Member 91670575-Jul-22 20:13
Member 91670575-Jul-22 20:13 
GeneralRe: Logging Pin
Owen Lawrence6-Jul-22 2:27
Owen Lawrence6-Jul-22 2:27 
GeneralRe: Logging Pin
darktrick5446-Jul-22 2:37
darktrick5446-Jul-22 2:37 
GeneralRe: Logging Pin
agolddog6-Jul-22 3:16
agolddog6-Jul-22 3:16 
GeneralRe: Logging Pin
Matt Bond6-Jul-22 3:18
Matt Bond6-Jul-22 3:18 
The main program I work on is a COTS desktop application. Our logging works, but I don't think it's up to modern standards. We log...
* Every exception as an Error, even if it doesn't display to the user.
* Every answer to a question in a UI prompt as Info, just because Users like to say "I didn't do that!" when they did.
* Every UI warning as a Warning, so we know if it happened.
* For time sensitive processes, every entry and exit of a method as Debug, but wrapped in a compiler directive so this only happens on non-release builds. This way we know were the bottlenecks are when testing.
* Every new piece of functionality gets Debug logging at important steps in the logic, so when it breaks we know where it broke and what values were being used.

Support has the capability to turn on debug logging on production systems so we can get more details. Also, the log file names are timestamped and rotate to another file if they get too big. We use SmartInspect to do the logging. We wrote our own wrapper around it to simplify its use.

Unfortunately, our logs are stored locally. Our Support team has to fetch them as issues arise. I would love to have the logs sent to a web service we control, but Management/PM's never give me the time to implement this.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere

GeneralRe: Logging Pin
MikeCO106-Jul-22 3:26
MikeCO106-Jul-22 3:26 
GeneralRe: Logging Pin
decaffeinatedMonkey6-Jul-22 3:56
decaffeinatedMonkey6-Jul-22 3:56 
GeneralRe: Logging Pin
MSBassSinger6-Jul-22 4:55
professionalMSBassSinger6-Jul-22 4:55 
GeneralRe: Logging Pin
Calin Negru6-Jul-22 5:40
Calin Negru6-Jul-22 5:40 
GeneralRe: Logging Pin
MSBassSinger6-Jul-22 6:06
professionalMSBassSinger6-Jul-22 6:06 
GeneralRe: Logging Pin
Shmoken996-Jul-22 7:56
Shmoken996-Jul-22 7:56 
GeneralRe: Logging Pin
MSBassSinger6-Jul-22 7:28
professionalMSBassSinger6-Jul-22 7:28 
GeneralWSO CCC OTD 2022-07-04 Pin
OriginalGriff3-Jul-22 21:41
mveOriginalGriff3-Jul-22 21:41 
GeneralRe: WSO CCC OTD 2022-07-04 Pin
pkfox3-Jul-22 22:12
professionalpkfox3-Jul-22 22:12 
GeneralRe: WSO CCC OTD 2022-07-04 - we have a winner! Pin
OriginalGriff3-Jul-22 22:49
mveOriginalGriff3-Jul-22 22:49 
GeneralRe: WSO CCC OTD 2022-07-04 - we have a winner! Pin
pkfox3-Jul-22 22:58
professionalpkfox3-Jul-22 22:58 
GeneralCCC Today ? Pin
pkfox3-Jul-22 20:03
professionalpkfox3-Jul-22 20:03 
GeneralRe: CCC Today ? Pin
OriginalGriff3-Jul-22 20:35
mveOriginalGriff3-Jul-22 20:35 
GeneralWordle 380 Pin
Amarnath S3-Jul-22 17:46
professionalAmarnath S3-Jul-22 17:46 
GeneralRe: Wordle 380 Pin
OriginalGriff3-Jul-22 19:00
mveOriginalGriff3-Jul-22 19:00 
GeneralRe: Wordle 380 Pin
Peter_in_27803-Jul-22 19:20
professionalPeter_in_27803-Jul-22 19:20 
GeneralRe: Wordle 380 - 3 for me Pin
pkfox3-Jul-22 19:47
professionalpkfox3-Jul-22 19:47 

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.