Implement logs command