Magnetic catalysis and magnetic oscillations in the Nambu-Jona-Lasinio model