Specific / categorised logging does not work in log4j.
If
log4j.category.org.hibernate=LEVEL (old version)
or
log4j.logger.org.hibernate=LEVEL (new version)
doesn't work for you and logging is limited only by the root logger`s log level, then have a look at the way you configure log4j.
you should use 'logger = Logger.getLogger(ClassName);'
where className can either be a string(class name) or the class which actually logs the messages,
logging will work even if you pass an empty String, bit since log4j wont know from which package it is receiving the messages the categorized logging wont work.
People using log4j for a long time will recognize that this is the very basic of log4j, but this is a place where people may make mistakes since usually we have a seperate class for configuring the log4j and they may hardcode the loggername to something they like instead of passing the classname as a parameter.
How to enable log4j configuration / debug messages?
Inorder to see the log4j confguration messages (the internal log4j debug messages) ,
if you use log4j xml:
<log4j :configuration debug="true"></log4j>
if you use log4j properties:
Log4j.debug=true
Photoshop cs3 Problem with Type 1 fonts
Adobe`s creative suite seems to have a problem recognising Type1 (.pfm) Fonts.
the workaround is to copy the .pfm file along with the associated .pfb file to
"C:\Program Files\Common Files\Adobe\Fonts"
restart your program and it should work.
Categories
- Ant (1)
- DB (1)
- ftp (1)
- Hibernate (3)
- http (1)
- interesting (1)
- Java (32)
- javascript (1)
- JSF (4)
- jsp (2)
- log4j (6)
- MIME (1)
- network (1)
- Operating Systems (4)
- save earth (2)
- struts (4)
- Uncategorized (8)
- WebSphere (26)
- Websphere-XD (5)
- WSRP (1)
- xplorer2 (1)
Monthly Archives
- October 2008 (6)
- September 2008 (4)
- August 2008 (2)
- July 2008 (14)
- June 2008 (9)
- May 2008 (3)
- April 2008 (15)
- March 2008 (33)