Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Logging - how to redirect output to a custom log file for a logger?

rsoikaNov 23 2011 — edited Nov 24 2011
Hi, I have a question about the jdk logging configuration. I have a EJB (deployed into glassfish) which uses JDK Logging to output messages.
Therefor I use a named logger with a code like this:
	private static Logger logger = Logger.getLogger("org.imixs.workflow");
.....
       logger.fine(" some info...");
....
I know that I can configure the loglevel for my logger by adding the following line into the logging.properties File from Glassfish:
.....
org.imixs.workflow.level=FINE
But how can I specify the output file for my logger? I would like to put all messages from the logger named 'org.imixs.workflow' into a separate file. Is this possible?

Thanks for any help

====
ralph
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2011
Added on Nov 23 2011
3 comments
1,599 views