Click here to Skip to main content
15,505,828 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
PIEBALDconsult5-Jul-22 7:51
professionalPIEBALDconsult5-Jul-22 7:51 
GeneralRe: Logging Pin
Calin Negru5-Jul-22 22:09
Calin Negru5-Jul-22 22:09 
GeneralRe: Logging Pin
Gerry Schmitz5-Jul-22 9:24
mveGerry Schmitz5-Jul-22 9:24 
GeneralRe: Logging Pin
Calin Negru6-Jul-22 5:53
Calin Negru6-Jul-22 5:53 
GeneralRe: Logging Pin
Member 91670575-Jul-22 21:13
Member 91670575-Jul-22 21:13 
GeneralRe: Logging Pin
Owen Lawrence6-Jul-22 3:27
Owen Lawrence6-Jul-22 3:27 
GeneralRe: Logging Pin
darktrick5446-Jul-22 3:37
darktrick5446-Jul-22 3:37 
GeneralRe: Logging Pin
agolddog6-Jul-22 4:16
agolddog6-Jul-22 4:16 
I'll add this. Like a lot of things in development, it's tough to do well.

At a minimum, exceptions must be logged. But, that often doesn't help diagnose the problem ("Hey, we got a NullReference somewhere in this block of code.")

It's often helpful to log something about the context of the exception--maybe the inputs to a method, maybe some other details--to make logging more useful. I suspect it's the same for your functional logging.

Of course, be careful to allow for nulls when constructing the message, or you've multiplied your problem. Wink | ;-)
GeneralRe: Logging Pin
Matt Bond6-Jul-22 4:18
Matt Bond6-Jul-22 4:18 
GeneralRe: Logging Pin
MikeCO106-Jul-22 4:26
MikeCO106-Jul-22 4:26 
GeneralRe: Logging Pin
decaffeinatedMonkey6-Jul-22 4:56
decaffeinatedMonkey6-Jul-22 4:56 
GeneralRe: Logging Pin
MSBassSinger6-Jul-22 5:55
professionalMSBassSinger6-Jul-22 5:55 
GeneralRe: Logging Pin
Calin Negru6-Jul-22 6:40
Calin Negru6-Jul-22 6:40 
GeneralRe: Logging Pin
MSBassSinger6-Jul-22 7:06
professionalMSBassSinger6-Jul-22 7:06 
GeneralRe: Logging Pin
Shmoken996-Jul-22 8:56
Shmoken996-Jul-22 8:56 
GeneralRe: Logging Pin
MSBassSinger6-Jul-22 8:28
professionalMSBassSinger6-Jul-22 8:28 
GeneralWSO CCC OTD 2022-07-04 Pin
OriginalGriff3-Jul-22 22:41
mveOriginalGriff3-Jul-22 22:41 
GeneralRe: WSO CCC OTD 2022-07-04 Pin
pkfox3-Jul-22 23:12
professionalpkfox3-Jul-22 23:12 
GeneralRe: WSO CCC OTD 2022-07-04 - we have a winner! Pin
OriginalGriff3-Jul-22 23:49
mveOriginalGriff3-Jul-22 23:49 
GeneralRe: WSO CCC OTD 2022-07-04 - we have a winner! Pin
pkfox3-Jul-22 23:58
professionalpkfox3-Jul-22 23:58 
GeneralCCC Today ? Pin
pkfox3-Jul-22 21:03
professionalpkfox3-Jul-22 21:03 
GeneralRe: CCC Today ? Pin
OriginalGriff3-Jul-22 21:35
mveOriginalGriff3-Jul-22 21:35 
GeneralWordle 380 Pin
Amarnath S3-Jul-22 18:46
professionalAmarnath S3-Jul-22 18:46 
GeneralRe: Wordle 380 Pin
OriginalGriff3-Jul-22 20:00
mveOriginalGriff3-Jul-22 20:00 
GeneralRe: Wordle 380 Pin
Peter_in_27803-Jul-22 20:20
professionalPeter_in_27803-Jul-22 20:20 

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.


Straw Poll

How would you describe your current job?
Fighting dragons everyday or clicking the same boxes on the same forms, day after day?
  Results   1,008 votes