Feature #9532

Expose logger monitor

Added by Arthur Neves almost 2 years ago. Updated over 1 year ago.

Assignee:Hiroshi Nakamura


I was wondering if we could do this type of change on the logger class:


I am proposing this, because if we have access to the mutex, on the logger instance, we would be able to synchronize methods such as, https://github.com/rails/rails/blob/95f5f8167ff86550d7fa9f5f7419cc9b38ef9704/activesupport/lib/active_support/logger_silence.rb#L12 . And make it thread-safe.


#1 Updated by Zachary Scott almost 2 years ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to Narihiro Nakamura
  • Target version set to current: 2.2.0

Please note: a number of libraries are using this class: https://github.com/search?l=ruby&q=LogDeviceMutex&ref=cmdform&type=Code

#2 Updated by Hiroshi SHIBATA almost 2 years ago

  • Assignee changed from Narihiro Nakamura to Hiroshi Nakamura

#3 Updated by Hiroshi SHIBATA over 1 year ago

  • Status changed from Assigned to Feedback

Your patch broke logger and syslog/logger tests.

Also available in: Atom PDF