java-util-logging

How to validate Java logging properties files?

I have a basic facility for allowing users to remotely apply changes to the logging files in my application. Some logs are configured using java.util.logging properties files, and some are configured using log4j/log4cplus-style properties files. I'd like to do some basic validation of the properties that users try to apply. Namely, I ...

java wrapper around log4j logger and java.util.logging

I am writing a library. The library can be used by applications that use log4j loggers and java.util.logging loggers. So, I wrote a quick wrapper class, that encapsulates both loggers. I allow the application to set one or both loggers. And in my library I use the encapsulated class to print to either logger. My question is, since many...

java util logging.properties: How to log to two different files

I am placing a logging.properties in the WEB-INF/classes dir of tomcat I would like to log to two different files. For example: org.pkg1 goes to one file and org.pkg2 goes to a separate file. I can get one file configured, but not two. Is that possible? ...

Install log formater in glassfish

Hello, I don´t like the output of the com.sun.enterprise.server.logging.UniformLogFormatter which might be uniform but not very helpfull. So in a first step I just replaced it with the java.util.logging.SimpleFormatter. This actualy works fine but for a java.lang.ClassCastException exception: java.lang.ClassCastException: java.util.log...

tomcat6: cannot create directory for logging in linux

i use ubuntu 9.04 for testing platform. I have created a webapp that log a hardcoded string whenever someone visit index.jsp. I have enable SECURITY_MANAGER in /etc/init.d/tomcat6. And I have grant permission for the webapp named w1 with grant codeBase "file:${catalina.base}/webapps/w1/-" { permission java.security.AllPermission; }...