Move Log implementation in private class

Also allow to change the print callback with the new method
yarp::os::Log::setLogCallback().