How to make log-Mel spectrogram?

To make a log-Mel spectrogram from a DSP spectrogram, I believe you need to transform the frequency axis according to the Mel-scale formula and display the amplitudes in dB.

Linking also this “related” thread.