Necklace rings and logarithmic functions