[Trac-tickets] Re: [The Trac Project] #809: Catch stderr and output
to logger
The Trac Project
noreply at edgewall.com
Wed Mar 2 18:29:13 EST 2005
#809: Catch stderr and output to logger
-------------------------+--------------------------------------------------
Id: 809 | Status: new
Component: general | Modified: Wed Mar 2 18:29:13 2005
Severity: enhancement | Milestone: 0.9
Priority: low | Version: 0.7.1
Owner: jonas | Reporter: tonib
-------------------------+--------------------------------------------------
Changes (by cmlenz):
* severity: normal => enhancement
* priority: normal => low
* keywords: => helpwanted
Old description:
> Hi,
>
> I suggest that sys.stderr is catched and output to
> the logger like below
>
> class StderrFaker:
> def write(self, message):
> message = message.strip()
> env.log.error(message)
>
> sys.stderr = StderrFaker()
New description:
Hi,
I suggest that sys.stderr is catched and output to
the logger like below
class StderrFaker:
def write(self, message):
message = message.strip()
env.log.error(message)
sys.stderr = StderrFaker()
Comment:
So maybe implement it only in the
[source:/trunk/trac/web/cgi_frontend.py#latest CGI frontend]?
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/809>
The Trac Project <>
More information about the Trac-Tickets
mailing list