logging

Having trouble finding out why Log4J is not configured?

This VM option is quite useful:

-Dlog4j.debug
  • Share/Bookmark

code
logging
thoughtblog

Comments (0)

Permalink

Util Logging

ok so now i need to know about java logging with the util package…

pretty simple ….

private static Logger log = Logger.getLogger(XSDStoreServletParameters.class.getName());

then log.finest(”hello”);

and

if (log.isLoggable(Level.CONFIG)) {

}

etc.

problem is that it doesnt do anything in the websphere process server…

hey ho.

it uses the old commons-logging (apparently called “JCL” these days!)

grrrrrr!

so you do :

private static Log log = LogFactory.getLog(JDBCToXML.class);

then its just like Log4J

the trick is to get Websfear to print it out – it doesnt want to put low level logging to the console.

you can get it to go to a file though and tail that i guess.

  • Share/Bookmark

jdk
logging
websphere

Comments (0)

Permalink