Sample logging