Click here to Skip to main content
15,893,487 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
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 
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 
Well, I agree that config is a bit of pain to sort out. But like with WCF you do it once then forget about it.

Kevin Marois wrote:
what's wrong with this:

Quite a lot. Opening and closing a file every time you want to write a line isn't going to perform well. It may not be threadsafe, there's no mention of when the line was written or from which thread it happened. It always writes to a file, good for services but rubbish for a console app and if you've done it right your app will be both (enterprise solutions). It doesn't standardise on the format of each log line (important if you use a decent viewer). There's no concept of level - how do you distinguish a bit of helpful text from a critical error? How do you stop your file growing to GBs?

Each to their own...
Regards,
Rob Philpott.

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 
GeneralRe: .Net Logging Pin
marcus obrien27-Jan-17 7:58
marcus obrien27-Jan-17 7:58 
GeneralRe: .Net Logging Pin
obermd27-Jan-17 14:30
obermd27-Jan-17 14:30 
GeneralRe: .Net Logging Pin
EbenRoux30-Jan-17 0:57
EbenRoux30-Jan-17 0: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.