> 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.