Opened 9 years ago

Closed 9 years ago

#323 closed enhancement (wontfix)

Have a logger-like warning precedence concept

Reported by: Kon Lovett Owned by:
Priority: not urgent at all Milestone:
Component: core libraries Version: 4.5.x
Keywords: Cc: Kon Lovett
Estimated difficulty:

Description (last modified by felix winkelmann)

  • level is a symbol or #f, indicating lower than the lowest level

(message-levels [levels]) -> level

  • parameter that gets/sets the active message levels
  • levels is a list of symbol defining the legal set of levels and the order of precedence. () means no levels

(message-level [level]) -> level

  • parameter that gets/sets the active message level
  • the active message level determines whether a message is processed any further. any message with a level lower than the current level is ignored.

(message level msg . args)

  • msg is a string, and args are objects
  • a level of #f will never be seen unless () = (message-levels)

(warning msg . args) & (##sys#notice msg . args)

  • wrappers around `message'

Change History (3)

comment:1 Changed 9 years ago by Kon Lovett

Cc: Kon Lovett added

comment:2 Changed 9 years ago by felix winkelmann

Description: modified (diff)
Milestone: 4.6.0

comment:3 Changed 9 years ago by felix winkelmann

Resolution: wontfix
Status: newclosed

No warning levels. We had this before, and it's painful.

Note: See TracTickets for help on using tickets.