• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taglib

 
Srirama Srirama
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I use log ebug
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which library are you talking about ?
 
Srirama Srirama
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is about <log ebug>
 
Srirama Srirama
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the above mails 'd' is not getting printed,
I am talking about
"Log Tag library" which I want to use in my JSP.
When I am using any of the things like debug or fatal in the jsp, it is running well, but I am not getting where the out put is getting printed
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated in the documentation, you'll have to understand how log4j works before using these tags.
Go to log4j's homepage for more information (basically, you'll need a log4j.properties)

About the 'd' not being correctly displayed, check the 'Disable smilies in this post' checkbox at the bottom of your new post.
 
Srirama Srirama
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I kept log4j.properties in the WEB-INF and required TLDS in the same folder.
I also placed the required jar files in the lib directory.
The JSP is running fine but I am not getting where it is printing the message.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to put log4j.properties and commons-logging.properties in WEB-INF/classes
 
Srirama Srirama
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even when i kept the log.properties in the web-inf/classes folder ,it isnot working
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
log4j.properties is not configured properly then.
By the way, did you check your container's log output directory ?
(for Tomcat, it's under logs)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Srirama Srirama",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic