> On Mar 17, 2016, at 4:48 PM, Marc Kaufmann <marc.kaufman...@gmail.com> wrote:
> 
> Yep, printing that out is indeed all I want. I hadn't thought about the fact 
> that 'print and 'display will show up in standard output. 
> 
> John, how do you use drrackt's log handlers, are you running the server via 
> Drracket or did you mean something different. 

Forgive me, of course I didn’t mean “DrRacket’s log handlers,” but rather 
“racket’s log handlers”, specifically those created by `define-logger`. My 
mistake. 
> 
> I can't use daemontools for reasons to do with permissions, but I will have 
> access to supervisord, which seems to be doing the same type of tasks. 

??

I claim you can run daemontools (specifically, svscan) without any permissions 
at all. Regardless, AFAIK supervisord does in fact achieve similar ends.

John

> 
> On Thu, Mar 17, 2016 at 4:46 PM, John Clements <cleme...@brinckerhoff.org> 
> wrote:
> 
> > On Mar 17, 2016, at 11:50 AM, Marc Kaufmann <marc.kaufman...@gmail.com> 
> > wrote:
> >
> > Hi all,
> >
> > I do not want people to see "Contract violation: massive stack trace 
> > documenting my brilliance as a programmer" every time they hit a bug on my 
> > website.
> >
> > Currently I show them simply an error page and redirect the trace to stderr 
> > (see code below). But this doesn't track time of the error, and so on. Is 
> > there a simple way to do this (seems like it should be a common problem), 
> > or at least how to easily get the time-stamp from servlet-error-response 
> > without having to manually pipe everything to stderr?
> 
> I think this problem is one of the ones that falls into the “Lisp crack”: 
> specifically, implementing your own solution is sufficiently easy that 
> building a general-purpose solution winds up being more trouble than it’s 
> worth, and never quite covers all of the various users’ requirements. Of 
> course, this leads to lack of standardization.
> 
> For me, I use drracket’s log handlers, make sure that everything winds up on 
> stdout, and then use ‘multilog’ from ‘daemontools’ to take care of 
> timestamps, partitioning (if desired) and log rotation.
> 
> John
> 
> 
> 
> 



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to