on 03-31-2004 7:03 PM
Is the ILogger that is returned by the <i>getLogger()</i> and <i>getClassLogger(</i>) methods of the <b>IPortalComponentRequest</b> object thread safe?
I would like to store a reference to the ILogger as an instance variable in my iView class (extends <b>AbstractPortalComponent</b>) so that I can have access to the logger anywhere in my code, even when the <b>IPortalComponentRequest</b> object is not available. But of course, how I access the ILogger instance variable will be effected as to whether or not the ILogger implementation is thread safe...
You can always get a logger instance by using the class methods defined in the class com.sapportals.portal.prt.runtime.PortalRuntime, so there is no need to store an ILogger as in instance variable.
regards
/Fredrik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.