Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Is Logger thread safe?

Reply
Thread Tools

Is Logger thread safe?

 
 
Iñaki Baz Castillo
Guest
Posts: n/a
 
      06-29-2008
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby's Logger vs ActiveRecord: no more Logger data output Georges Ko Ruby 4 07-26-2006 01:38 PM
why do i need to use org/apache/avalon/framework/logger/Logger to convert XSL-FO to PDF?? sachin XML 1 02-03-2006 09:58 PM
ruby's Logger conflict with Log4r's Logger cap Ruby 3 12-11-2005 03:44 PM
Logger Handler Question Rhino Java 3 03-10-2005 07:01 AM
Singleton logger Laszlo Perl 0 04-20-2004 01:19 PM



Advertisments