methods for logging std::ostream and unsigned int added

(cherry picked from commit d45705781fa5da041194a187c057bc86232d6721)
debug outputs added to periodic thread class