commit | d0d89eeced934047ccbe12ad319ddaa928a1898b | [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 | a1e4267a4eef54f011ab0f21a33284c80864e38c | |
parent | 44c7d932f9ff8bbc039b255509773a56d62df857 [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.