[teiid-issues] [JBoss JIRA] Resolved: (TEIID-385) Replace client logging with java logging

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Fri Feb 27 20:55:44 EST 2009


     [ https://jira.jboss.org/jira/browse/TEIID-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramesh Reddy resolved TEIID-385.
--------------------------------

    Resolution: Done
      Assignee: Ramesh Reddy  (was: Steven Hawkins)


The logging in the JDBC client code now uses the JDK based logging. So, it will directed directly to the user's log file rather than separate file, if needed.  In order to turn it on do the following.

Create a property file called teiid-jdbc-logging.properties with following contents
File Start >> ----------------------------------------------------------------------------------------------------
   # Specify the handlers to create in the root logger
    # (all loggers are children of the root logger)
    # The following creates two handlers
    handlers = java.util.logging.FileHandler
    
    # Set the default logging level for the root logger
    .level = ALL
    java.util.logging.FileHandler.pattern = /path/mylog.log
    java.util.logging.FileHandler.limit = 50000
    java.util.logging.FileHandler.count = 1
        
    # Set the default formatter for new ConsoleHandler instances
    java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
    
    # Set the default logging level for the logger named com.mycompany
    org.teiid.jdbc.level = ALL
------------------------------------------------------------------------------------------------------------- <<end

And pass in a system property to your VM 

-Djava.util.logging.config.file=teiid-jdbc-logging.properties

or see JDK logging framework to see more details on configuring 

http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html


> Replace client logging with java logging
> ----------------------------------------
>
>                 Key: TEIID-385
>                 URL: https://jira.jboss.org/jira/browse/TEIID-385
>             Project: Teiid
>          Issue Type: Quality Risk
>          Components: JDBC Driver
>    Affects Versions: 6.0.0
>            Reporter: Steven Hawkins
>            Assignee: Ramesh Reddy
>             Fix For: 6.0.0
>
>
> The client code is unnecessarily concerned with logging and log configuration with the socketlogger and the drivermanagerlogger.  These calls should be replaced with standard java logging.

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

        



More information about the teiid-issues mailing list