From: Kassym Dorsel Date: 2011-11-25T22:57:18+09:00 Subject: Re: set logger.progname on a per thread basis Sorry I should have specified. In each thread I'm creating a new instance of Mechanize and login with a different user. I send get requests from each user and I'm using the built-in Mechanize logger. On DEBUG mode the log can generate up to 20 lines of log per request. Since there can be multiple requests going at once I want a way to differentiate between them. The easiest way I thought of doing this was to change the progname on a per thread basis, but for that to be thread safe I need to synchronize the whole method that uses Mechanize (Browse). Thanks! -- Posted via http://www.ruby-forum.com/.