See the documentation for automatic assignment for USB MIDI controllers for more details.
Logic Pro Instruments: PDF