Is Logger thread safe?

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

Hi, in my program I use threads and a Logger instante accessible from any=20
thread. Must I do something to make the Logger thread safe?

I've looked at the Logger code and it seems that it uses Mutex in some meth=
ods=20
and does a:
require 'monitor'

Is then Logger class thread safe and I can call its methods (@logger.debug.=
=2E.)=20
from any thread in parallel safely?

Thanks.

=2D-=20
I=C3=B1aki Baz Castillo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top