Update for std::logging -> ::log
Temporarily allow deprecated_owned_vector

We can't get rid of ~[] entirely at the moment because of things like
.read_until() that return it. So for the time being just silence the
warnings.
Fix compilation of the example program

Matching on ~str is no longer allowed.