• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are the global log handlers thread safe?

 
Hu Yong Jun
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The LoggerManager holds some global log handlers. Are the global log handlers thread safe?

There are many session threads in the server tier. All the session threads use the global log handler to write log messages, so are golbal log handlers thread safe?

By the way, thank Andrew, I know Andrew advises strongly against changing the DB interface, but I think that it is inevitable to add something to the implementation object of DB in my design.

For example, one must has getLockManager() method in Data class implementing DB if he want to move the duty of lock management from DB to another class LockManager.

For another example, one gets the database and field metadata from Data class the best so the getDatabaseMetadata() and getFieldMetadata() methods should be added. He should provide the database meta infomation from his mind instead of from the database if one does not change the DB interface.
[ September 29, 2004: Message edited by: Hu Yong Jun ]
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!