Click here to Skip to main content
15,895,798 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: .Net Logging Pin
Howard Hoffman27-Jan-17 2:39
Howard Hoffman27-Jan-17 2:39 
GeneralRe: .Net Logging Pin
lopatir26-Jan-17 8:12
lopatir26-Jan-17 8:12 
GeneralRe: .Net Logging Pin
Gerry Schmitz26-Jan-17 8:15
mveGerry Schmitz26-Jan-17 8:15 
GeneralRe: .Net Logging Pin
Richard Deeming26-Jan-17 8:20
mveRichard Deeming26-Jan-17 8:20 
JokeRe: .Net Logging Pin
Slacker00726-Jan-17 8:41
professionalSlacker00726-Jan-17 8:41 
GeneralRe: .Net Logging Pin
Nish Nishant26-Jan-17 8:51
sitebuilderNish Nishant26-Jan-17 8:51 
GeneralRe: .Net Logging Pin
Slacker00726-Jan-17 11:19
professionalSlacker00726-Jan-17 11:19 
GeneralRe: .Net Logging Pin
Sander Rossel26-Jan-17 9:49
professionalSander Rossel26-Jan-17 9:49 
We currently use log4net... To log to a file.
Well, 10 files actually.
Of 10 MB max.
After which it overwrites the first again.

That sh*t is totally unreadable and for some reason we have to log EVERYTHING.
Yes, I DO believe some function was entered AND exited unless an error occurred, WHY THE HELL DO WE NEED TO LOG THAT!?
The worst part, our source code is littered with debug log statements and on all environments we have the minimum log level set to info, so the debug logs never even show.
Some people say "it's easy for debugging", but since when is a log file easier for debugging than a friggin' debugger!?

Then again, I recently figured out a bug in three minutes using nothing but an error message and a stack trace after a coworker angrily gave me the (my) code because "I didn't add log statements and now he had to spent 30 minutes figuring out what went wrong!"
It was a NullReference and by just looking at the code you could tell what parameters could be null, well at least I could Unsure | :~

Yes, logging is good, but only if they are exception logs (with stack trace!!!) or logging that is required for the business.
And rarely for debugging purposes, for example when multi-threading or handling input events (but in your console while debugging, not in a log file on production).

Funny enough I've had this discussion with multiple people who all disagree with me (and despite all that logging which I don't use I usually find bugs faster) Confused | :confused:

GeneralRe: .Net Logging Pin
Mladen Janković26-Jan-17 11:54
Mladen Janković26-Jan-17 11:54 
GeneralRe: .Net Logging Pin
Sander Rossel26-Jan-17 21:36
professionalSander Rossel26-Jan-17 21:36 
GeneralRe: .Net Logging Pin
Rob Philpott26-Jan-17 10:28
Rob Philpott26-Jan-17 10:28 
GeneralRe: .Net Logging Pin
TheGreatAndPowerfulOz26-Jan-17 12:12
TheGreatAndPowerfulOz26-Jan-17 12:12 
GeneralRe: .Net Logging Pin
Uwe Laas26-Jan-17 19:49
Uwe Laas26-Jan-17 19:49 
GeneralRe: .Net Logging Pin
Mehdi Gholam26-Jan-17 20:11
Mehdi Gholam26-Jan-17 20:11 
GeneralRe: .Net Logging Pin
Didjeeh26-Jan-17 20:14
Didjeeh26-Jan-17 20:14 
GeneralRe: .Net Logging Pin
SonnyHarbour26-Jan-17 21:22
SonnyHarbour26-Jan-17 21:22 
GeneralRe: .Net Logging Pin
Xmen Real 26-Jan-17 21:55
professional Xmen Real 26-Jan-17 21:55 
GeneralRe: .Net Logging Pin
Johann Gerell26-Jan-17 22:09
Johann Gerell26-Jan-17 22:09 
GeneralRe: .Net Logging Pin
BinaryReason27-Jan-17 1:40
BinaryReason27-Jan-17 1:40 
GeneralRe: .Net Logging Pin
Marc Clifton27-Jan-17 2:22
mvaMarc Clifton27-Jan-17 2:22 
GeneralRe: .Net Logging Pin
JackPeacock27-Jan-17 2:42
professionalJackPeacock27-Jan-17 2:42 
GeneralRe: .Net Logging Pin
Michael Shoemaker27-Jan-17 2:46
Michael Shoemaker27-Jan-17 2:46 
GeneralRe: .Net Logging Pin
ScottM127-Jan-17 2:57
ScottM127-Jan-17 2:57 
GeneralRe: .Net Logging Pin
ranman2227-Jan-17 3:07
ranman2227-Jan-17 3:07 
GeneralRe: .Net Logging Pin
James Curran27-Jan-17 4:57
James Curran27-Jan-17 4:57 

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.