commit | b501914f9448cc0c5852922d217ae11a29c63467 | [log] [tgz] |
---|---|---|
author | Jesse Wilson <jessewilson@google.com> | Wed Oct 21 14:57:48 2009 -0700 |
committer | Jesse Wilson <jessewilson@google.com> | Thu Oct 22 09:20:48 2009 -0700 |
tree | 502061443aa1a0b920f51563778b60b81ed7570c | |
parent | 4a19d6a3afb37e789a273d746cd59bb6d42839b8 [diff] |
Cleaning up synchronization in Logger. Formerly any logged message would require synchronization on the shared global lock to access the root logger's handlers. This change replaces synchronization on loggers with a combination of copy-on-write and volatile fields. Also moving handler initialization from lazy to eager - the code has moved from initHandlers() to setManager(). Also tidying up the info(), severe() type methods to delegate to avoid unnecessary duplication.