Minor tweaks and adding a %L format for uppercase levels.