Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3481

Take advantage of java.util.logging functionality for non-J2ME platforms.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Services
    • None

    Description

      The ability to expose Derby's logging through java.util.logging has many benefits due to the standard nature of the jvm's logging including facilities such as rotating log files.

      A set of logical operations on InfoStreams that mirrored a sub-set of java.util.logging.Logger would provide benefits such as dynamic changing the level of the log information, including through standard JMX platform MBeans allowing other code to add handlers to Derby's logging etc.

      E.g. warning(), info(), config(), throwing() with the latter replacing the functionality of ErrorStringBuilder.

      Note that java.util.logging is not supported on J2ME/CDC/Foundation thus there would need to be two InfoStreams implementations, one that forwarded calls to java.util.logging and one that works as current.

      Ideal project for incremental development, add a single method (e.g. config) and adapt a few logging calls to that as a first step and then proceed to add more functionality.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: