Updating the logger to also use the log template upon stopping the logger. Also re-coding the conditional addition of the application name and version.