Moved timespec serializer implementation to logger.cc.