> Private static Logger log = Logger.getLogger(SFXLinkTag.class);
>
> My question is this:  How do I make these same changes in a .jsp, such as
> display-item.jsp?   I was able to figure out the syntax for the 1st and 
> last
> lines of code, but didn't know what to do with the parameter inside Logger
> getLogger(                                   ), and of course got an error
> when I completely left this line out.

Sue,

Documentation for the Logger class is here:

http://logging.apache.org/log4j/docs/api/org/apache/log4j/Logger.html

As you can see, there are two variations of getLogger - one that takes a 
Class (as used above), and one that takes a String.

Ultimately, the Class based method is retrieving the name of the class as a 
string, and in both cases the logger for that name / value is returned (or 
created).

For JSPs, classes are generated automatically, and hence given obscure 
names. This makes configuration at best awkward, if not impossible. But as 
you can pass a String to getLogger(), simply pass a value you are 
comfortable with (ie. "DisplayItemJSP").

G 
 
 
This e-mail is confidential and should not be used by anyone who is not the 
original intended recipient. BioMed Central Limited does not accept liability 
for any statements made which are clearly the sender's own and not expressly 
made on behalf of BioMed Central Limited. No contracts may be concluded on 
behalf of BioMed Central Limited by means of e-mail communication. BioMed 
Central Limited Registered in England and Wales with registered number 3680030 
Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to