Restructuring for #665 and #681
Added logtoidx() and idxtolog()
Authored by: numere 2022-04-07
Parent: [r1117]
Child: [r1119]