vibe.d: Finding out if currently in webinterface request

Johannes Loher johannes.loher at fg4f.de
Fri Aug 10 18:23:28 UTC 2018


On Friday, 10 August 2018 at 09:33:34 UTC, Timoses wrote:
> On Thursday, 9 August 2018 at 21:59:24 UTC, Johannes Loher 
> wrote:
>> I already posted this in the vibe.d forums 
>> (https://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/58891/), but it seems, there is not a lot of activity over there, so I am cross posting this here:
>>
>> [...]
>
> Do you have some code segments boiled down to the problem?
>
> Are you using vibe.core.log?

Yes, I am using vibe.core.log, but as mentioned, I want to 
implement my own logger. The gist of what I am trying to do is 
this:

https://run.dlang.io/is/7qpJ6J

This actually works the way it is, but it involves catch 
Throwable (actually AssertError would be enough) and this is bad. 
I would like to find a different solution.


More information about the Digitalmars-d-learn mailing list