MAINT: Remove spaces from log files prefix

Having them in place make autocompletion/usage in a shell session annoying.
Can you use the config object directly to pull the locale information instead of using media_locale as an intermediary?