Rak
Rak

Reputation: 399

Logging in a multiprocess application along with multithreading

I am looking for a logging facility for a multiprocess application which also contains multiple threads with in each process.

My current application is only multi-threaded and uses ACE_Message_Queue for sending logging events to the logger thread (The actual Log message is shared between application threads and the logger thread through a global array).

My new application contains multiple processes with multiple threads with in each process. How can I achieve a decent logging functionality in this scenario? Also looking to get rid of ACE in favor of Boost. My new application is supposed to run on Linux,Mac and Windows.

Thank you in advance.

Upvotes: 5

Views: 2999

Answers (3)

peihan
peihan

Reputation: 652

I'v a blog to show my logging practice about this question: http://peihanw.blogspot.com/2012/08/my-answer-to-stackoverflows-question.html

Upvotes: 0

perreal
perreal

Reputation: 97958

Boost.Log (v2) is very easy to set-up and pretty comprehensive. It is not in the boost library yet but it will be soon. You can use it as a simple logger, or write filters and customize the logging process and output. I am using it for a project and very very happy with it. See this question.

Upvotes: 1

Serge Z
Serge Z

Reputation: 425

Try to use log4cplus. It is an up-to date logging library allows using from multiple processes.

Upvotes: 1

Related Questions