[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Is Logger thread safe?

Iñaki Baz Castillo

6/29/2008 7:46:00 PM

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