logging.properties

hi,

i used a message-driven bean for logging. logs are generated quite well. i am explicitly defining the FileHandler and Formatter in my MDB code. but i decided to use the default logging.properites file in the jre/lib directory and commented out my FileHandler and Formatter in my code. i followed the procedures in setting up the properties file but it just won't work. i tried using the properties file in an application and it works fine. do i have to configure a property when dealing with EJB's and MDB's? thanks.

#logging.properties file

handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler

.level= ALL

java.util.logging.FileHandler.pattern = %h/com.mycom%u.log

java.util.logging.FileHandler.limit = 50000

java.util.logging.FileHandler.count = 1

java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter

java.util.logging.ConsoleHandler.level = INFO

java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

regards,

andrew

[1081 byte] By [bashdrewa] at [2008-2-15]
# 1
I have the same problem. the log file is created but the file is empty.i seem to be missing something.
merlin_aa at 2007-7-14 > top of java,Core,Monitoring & Management...