Click here to Skip to main content
15,902,114 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
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 
Nothing is wrong with that "at the most basic level", but when you're in a heavily multithreaded/concurrent/async/parallel environment with extreme demands for low latency and high throughput, you need a logging system that doesn't negatively affect the required functionality of the application, doesn't block anything, and doesn't garble data due to likely concurrent logging resource access.

As your basic example is written, it will surely "work" for most simple desktop user scenarios where the time it takes for the user to make a mouse click is 10 times higher than the time to complete a call to Logger::Info(), and nothing complicated is happening concurrently.

That said, it would *never* work in a game, in a VoIP app, in a high-grequency stock trading app.
Time you enjoy wasting is not wasted time - Bertrand Russel

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 
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 

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.