Menu

#21 PATCH: Using log names for log4j categories.

v2.4
open-accepted
nobody
None
5
2001-04-21
2001-04-21
No

The current Log4jService mbean, while it does allow
logging to take place through log4j, does not appear to
allow use of one of its big features-- categories that
can be turned on and off independently. This patch
partially fixes this by using the log name as a
category name. This is not the full power of the
hierarchy of categories supported by log4j, but it is
way better than nothing.

This patch consists of a few lines of code to use the
log name as the category, rather than always using the
root category, and a (commented out) example line in
log4j.properties showing a simple use of this feature.

Discussion

  • David Jencks

    David Jencks - 2001-04-21

    patch to Log4jService and example in log4j.properties.

     
  • Juha Lindfors

    Juha Lindfors - 2001-04-21
    • assigned_to: nobody --> juhalindfors
    • status: open --> open-accepted
     
  • Juha Lindfors

    Juha Lindfors - 2001-04-21

    Logged In: YES
    user_id=175239

    David,

    Thanks for the diff file.

    Committed to MAIN (2.3) branch.

    Closing and moving to change notes..

     
  • Juha Lindfors

    Juha Lindfors - 2001-04-21
    • assigned_to: juhalindfors --> nobody
    • milestone: 115986 -->
    • labels: 316843 -->
     
  • Juha Lindfors

    Juha Lindfors - 2001-04-21
    • milestone: --> v2.4
    • summary: Use log names for log4j categories. --> PATCH: Using log names for log4j categories.
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.