Menu

Could rename the level name of priority ?

2001-06-28
2001-06-29
  • Chenggong Lv

    Chenggong Lv - 2001-06-28

    For avoiding the collision between the level name of priority and some macros of other program.

    such as

    DEBUG  ==> Debug
    ERROR  ==> Error
    INFO   ==> Info
    ALERT  ==> Alert
    ....

     
    • Bastiaan Bakker

      Bastiaan Bakker - 2001-06-29

      This has been elaborately discussed on the development mailing list under '#define ERROR workaround'.
      The names stay as is, because:
      * changing breaks backwards compatibility
      * changing means an unnecessary diversion from log4j
      * the libraries/apps claiming these far to generic macro names are broken, not log4cpp: log4cpp only uses an enum containing DEBUG within log4cpp::Priority scope and not a macro.

       

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.