On Jan 1, 2008, at 8:22 PM, Alec Thomas wrote:

>
> Hi,
>
> I've been porting plugins to 0.11 for the last couple of days and the
> experience has overall been quite pleasant.
>
> Highlights include:
>
>  - add_warning(). Very useful!
>
>    I'd like to propose that we also include an add_notice() function
>    before 0.11 is released. This would allow non-warning informational
>    messages. Refactor add_warning() to use the general purpose
>    add_notice() function. This would be *very* useful for plugins
>    wanting to send messages to the user. In its stead, plugins will
>    write their own bespoke solutions or use add_warning() (which is
>    what I'm currently doing).
>
>    What's the opinion? I'm happy to do the work.

If we want to go in this direction, making something more compatible  
with the standard logging module might be nice.

add_warning(req, msg) -> req.log.warn(msg)

I realize this is almost the exact opposite of the last change, but at  
least it would centralize things. We could even use the logging module  
and just make a new backend (not sure how that works, but I think it  
is possible). Thoughts?

--Noah

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to