[jboss-jira] [JBoss JIRA] Commented: (JBAS-4361) java.util.logging.FileHandler.formatter cannot be changed to java.util.logging.SimpleFormatter

David Navara (JIRA) jira-events at lists.jboss.org
Sat Oct 13 22:12:03 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4361?page=comments#action_12382313 ] 
            
David Navara commented on JBAS-4361:
------------------------------------

I had a similar problem and to my suprise I realized there is a space char ' ' after the class name java.util.logging.SimpleFormatter which causes the problem. Try to remove the whitespace at the end of the line.

> java.util.logging.FileHandler.formatter cannot be changed to java.util.logging.SimpleFormatter
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBAS-4361
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4361
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Logging
>    Affects Versions: JBossAS-4.2.0.CR2
>         Environment: JDK is 1.5.0_11-b03
>            Reporter: Wolfgang Knauf
>         Assigned To: Scott M Stark
>            Priority: Minor
>
> I tried to create a plain text log output with this logging.properties file:
> handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
> .level= INFO
> java.util.logging.FileHandler.pattern = c:/temp/logfile.log 
> java.util.logging.FileHandler.level = INFO
> 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
> I startup the server with this commandline:
> run.bat -c default -Djava.util.logging.config.file=c:/temp/logging.properties
> The log file is placed in c:\temp\logfile.log and contains my output, but it is in XML, not in Simple format. Console output is in SimpleFormat as expected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list