Skip to main content
Just circling now.
Source Link
paul
  • 2.1k
  • 13
  • 16

Geeze, will you stop editing!?:

Also you could have one queue for each group of modules and have a logger for each queue.

Ok, I'll stop now.

Geeze, will you stop editing!?:

Also you could have one queue for each group of modules and have a logger for each queue.

Ok, I'll stop now.

Bringing it full circle.
Source Link
paul
  • 2.1k
  • 13
  • 16

And Yet Another Edit:

With this setup it would be fairly easy to pass all the modules the same queue and just having the consumer look at that one queue, which would take you back to Ratchet Freak's answer.

And Yet Another Edit:

With this setup it would be fairly easy to pass all the modules the same queue and just having the consumer look at that one queue, which would take you back to Ratchet Freak's answer.

Added another caution.
Source Link
paul
  • 2.1k
  • 13
  • 16

Yet Another Edit:

You'll probably also want to put a timestamp as part of the LogItem; with the logger thread(s) going through the queues sequentially the log statements might get out of order from when they occurred chronologically in the modules.

Yet Another Edit:

You'll probably also want to put a timestamp as part of the LogItem; with the logger thread(s) going through the queues sequentially the log statements might get out of order from when they occurred chronologically in the modules.

Expanded answer to give more detail/examples, made another suggestion
Source Link
paul
  • 2.1k
  • 13
  • 16
Loading
Expanded answer to give more detail/examples
Source Link
paul
  • 2.1k
  • 13
  • 16
Loading
Source Link
paul
  • 2.1k
  • 13
  • 16
Loading