Click here to Skip to main content
15,886,873 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, as in application level... Pin
charlieg24-Feb-21 1:56
charlieg24-Feb-21 1:56 
GeneralRe: Logging, as in application level... Pin
Eddy Vluggen22-Feb-21 12:01
professionalEddy Vluggen22-Feb-21 12:01 
GeneralRe: Logging, as in application level... Pin
Randor 22-Feb-21 12:14
professional Randor 22-Feb-21 12:14 
GeneralRe: Logging, as in application level... Pin
honey the codewitch22-Feb-21 12:32
mvahoney the codewitch22-Feb-21 12:32 
GeneralRe: Logging, as in application level... Pin
Randor 22-Feb-21 12:51
professional Randor 22-Feb-21 12:51 
GeneralRe: Logging, as in application level... Pin
honey the codewitch22-Feb-21 12:59
mvahoney the codewitch22-Feb-21 12:59 
GeneralRe: Logging, as in application level... Pin
Peter_in_278022-Feb-21 14:08
professionalPeter_in_278022-Feb-21 14:08 
GeneralRe: Logging, as in application level... Pin
Rick York22-Feb-21 19:22
mveRick York22-Feb-21 19:22 
I take a little bit different approach to logging. I work on automation systems and I have multiple levels of logging going on simultaneously. I'll mention just a couple. One is the trace buffer. It's always going and is essentially major events of note. The next one is what I call debug messages. These work like traces but have a mask associated with them that can be changed at run-time. The masks are bit-oriented and each bit is associated with a given functional aspect of the system. There are about two dozen of them defined now and there can be up to 63 because the zero bit is always set on. I wrote a special facility for this that uses shared memory to buffer up a whole bunch of messages and access is controlled by a mutex so multiple processes can use the same buffer. As it turns out, this is really, really fast which was my primary goal. I have measured the overhead for each message to be less than one microsecond on my old laptop. The same test was performed using printf calls to a console and the overhead was measured to be greater than 12uS. Writing directly to a text file is unacceptable for a variety of reasons. I tried that a few decades ago and abandoned it entirely. My systems involve multiple processes, each with multiple threads, and I worked for a long time to come up with a mechanism that solves all the problems and I'm pretty happy with this one. There's a lot more to it but I'll stop there.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

GeneralRe: Logging, as in application level... Pin
Greg Utas23-Feb-21 0:14
professionalGreg Utas23-Feb-21 0:14 
GeneralRe: Logging, as in application level... Pin
BernardIE531722-Feb-21 20:37
BernardIE531722-Feb-21 20:37 
GeneralRe: Logging, as in application level... Pin
Greg Utas23-Feb-21 0:03
professionalGreg Utas23-Feb-21 0:03 
GeneralRe: Logging, as in application level... Pin
BernardIE531723-Feb-21 9:01
BernardIE531723-Feb-21 9:01 
GeneralRe: Logging, as in application level... Pin
Greg Utas23-Feb-21 9:09
professionalGreg Utas23-Feb-21 9:09 
GeneralRe: Logging, as in application level... Pin
BernardIE531723-Feb-21 10:21
BernardIE531723-Feb-21 10:21 
GeneralRe: Logging, as in application level... Pin
Greg Utas23-Feb-21 11:32
professionalGreg Utas23-Feb-21 11:32 
JokeRe: Logging, as in application level... Pin
Maximilien23-Feb-21 1:27
Maximilien23-Feb-21 1:27 
GeneralRe: Logging, as in application level... Pin
charlieg20-Mar-21 5:19
charlieg20-Mar-21 5:19 
Generaluse of build time Pin
BernardIE531722-Feb-21 10:18
BernardIE531722-Feb-21 10:18 
GeneralRe: use of build time Pin
charlieg22-Feb-21 10:28
charlieg22-Feb-21 10:28 
GeneralRe: use of build time Pin
Sander Rossel22-Feb-21 10:28
professionalSander Rossel22-Feb-21 10:28 
GeneralRe: use of build time Pin
Kornfeld Eliyahu Peter22-Feb-21 10:43
professionalKornfeld Eliyahu Peter22-Feb-21 10:43 
GeneralRe: use of build time Pin
Sander Rossel22-Feb-21 10:51
professionalSander Rossel22-Feb-21 10:51 
GeneralRe: use of build time Pin
gervacleto23-Feb-21 0:54
professionalgervacleto23-Feb-21 0:54 
GeneralRe: use of build time Pin
trønderen22-Feb-21 10:57
trønderen22-Feb-21 10:57 
GeneralRe: use of build time Pin
Kornfeld Eliyahu Peter22-Feb-21 18:24
professionalKornfeld Eliyahu Peter22-Feb-21 18:24 

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.