Overriding ExceptionCallback is the way, yes. Note that you only have to
re-implement `logMessage()`. The default implementations of the other
methods will forward to the next ExceptionCallback up the stack, which is
probably what you want.

Sorry, there's no existing implementation for logging to files, but this
should be pretty simple to write.

-Kenton

On Tue, Nov 8, 2016 at 2:46 PM, Nathan Hourt <[email protected]> wrote:

> What's the easiest way to make KJ_LOG log to a file instead of stderr? It
> looks like I can do it by reimplementing ExceptionCallback; is that the
> best way? Is there an implementation of logging to files already written
> somewhere that I can use?
>
> TIA
> --
> Nathan Hourt
>
> *The Truth will set you free*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cap'n Proto" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/group/capnproto.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to