Can anyone explain the link between the debug core parameter and the logging levels used in the log functions (log and xlog)?

The levels start from -3 (ALERT) and go up to 5 (DEBUG), but the parameter value is from 0 to 9.

 

Thanks,

Cristian