Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-10

SimpleLog uses getSystemResourceAsStream to load props

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0.1
    • None
    • Operating System: All
      Platform: All

    • 9140

    Description

      The Log implementation, SimpleLog, uses getSystemResourceAsStream() to load the
      simplelog.properties file. Using getSystemResourceAsStream(), instead of something like
      this.getClass().getClassLoader().getResourceAsStream(), or even better,
      Thread.currentThread().getContextClassLoader().getResourceAsStream(), prevents the
      properties file from being deployed with an application. This forces the developer to put the
      properties file on the system classpath.

      Why was the decision made to only look on at the
      system classloader? The LogFactory does a nice job of finding it's properties with
      findClassLoader(). A similar implementation for SimpleLog would be great.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jrr@silverstream.com John Rousseau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: