Change the logger to a function that takes an application name.