Click here to Skip to main content
15,893,508 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
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 
I think its been mentioned before but this is ok if you have a single thread running. Any GUI based app with more than the main thread is going to be problematic. Loggin shouldn't be wasting time on the main thread running the program. You should wrap up a logging task, then fire it off onto another thread and forget about it. It can take ages (relatively) to open a file and append a log entry to it. And if you use locking (mutex) to make sure logging is thread safe, then all the threads wanting to log, end up waiting etc.

Then there is the problem of multiple teams/modules writing to the log. It's nice to filter/partition log entries etc. Or use colour coding (then you need a log file reader !)

So at home on my robotics projects (www.roboticsfordreamers.com) I use a simple - file open and writer - for simple projects (I always use small simple programs linked together with 0MQ anyway, so logging is always on a separate single thread !)

I do agree though, that mostly this area is over-engineered, the people who look after these projects see them as in need of improving with additional functionality. What is nice, is when you have two approaches you can use in a software system. The super fast, lightweight, low functionality solution, and the complete bells and whistles solution. Maybe software (especially SDKs) should be developed in this way, then users can chose the trade off between functionality and speed.

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 
Generalmust read books for dot net developer Pin
King Fisher26-Jan-17 6:39
professionalKing Fisher26-Jan-17 6:39 
GeneralRe: must read books for dot net developer PinPopular
OriginalGriff26-Jan-17 6:45
mveOriginalGriff26-Jan-17 6:45 
GeneralRe: must read books for dot net developer Pin
lopatir26-Jan-17 8:02
lopatir26-Jan-17 8:02 
GeneralRe: must read books for dot net developer Pin
Mel Padden27-Jan-17 1:47
Mel Padden27-Jan-17 1:47 
GeneralRe: must read books for dot net developer Pin
Rob Philpott26-Jan-17 6:48
Rob Philpott26-Jan-17 6:48 
GeneralRe: must read books for dot net developer Pin
King Fisher26-Jan-17 7:11
professionalKing Fisher26-Jan-17 7:11 
GeneralRe: must read books for dot net developer Pin
littleGreenDude26-Jan-17 7:50
littleGreenDude26-Jan-17 7:50 
GeneralRe: must read books for dot net developer Pin
Maximilien26-Jan-17 6:49
Maximilien26-Jan-17 6:49 
GeneralRe: must read books for dot net developer Pin
King Fisher26-Jan-17 7:00
professionalKing Fisher26-Jan-17 7:00 
GeneralRe: must read books for dot net developer Pin
PIEBALDconsult26-Jan-17 7:01
mvePIEBALDconsult26-Jan-17 7:01 
GeneralRe: must read books for dot net developer Pin
Richard MacCutchan26-Jan-17 7:01
mveRichard MacCutchan26-Jan-17 7:01 
GeneralRe: must read books for dot net developer Pin
CDP180226-Jan-17 7:12
CDP180226-Jan-17 7:12 
GeneralRe: must read books for dot net developer Pin
Kevin Marois26-Jan-17 7:15
professionalKevin Marois26-Jan-17 7:15 
GeneralRe: must read books for dot net developer Pin
dandy7226-Jan-17 7:54
dandy7226-Jan-17 7:54 
GeneralRe: must read books for dot net developer Pin
Jon McKee26-Jan-17 9:27
professionalJon McKee26-Jan-17 9:27 

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.