cancel
Showing results for 
Search instead for 
Did you mean: 

Is the ILogger Thread Safe?

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks! That's just the sort of answer I was hoping to hear.

Former Member
0 Kudos

Thanks! That's just the answer I was hoping to hear.

Former Member
0 Kudos

Thanks! That's just the answer I was hoping to hear.

Former Member
0 Kudos

Thanks! That is just the answer I was hoping to hear.

Former Member
0 Kudos

Thanks! That is just the answer I was hoping to hear.

Former Member
0 Kudos

Thanks! That was just the answer that I was looking for.

Former Member
0 Kudos

Thanks! That's just the answer I needed.