Added Log4net configuration for recipes logging. Added logging to replace the removed reports logging.

This commit is contained in:
Daniel Stolt
2015-07-09 12:31:37 +01:00
parent e054a833af
commit 2c10b0df98
6 changed files with 112 additions and 95 deletions

View File

@@ -228,9 +228,9 @@ namespace Orchard.Themes.Controllers {
return HttpNotFound();
try {
// TODO: LOGGING
_dataMigrationManager.Update(themeId);
Services.Notifier.Information(T("The theme {0} was updated successfully", themeId));
Services.Notifier.Information(T("The theme {0} was updated successfully.", themeId));
Logger.Information("The theme {0} was updated successfully.", themeId);
} catch (Exception exception) {
Logger.Error(T("An error occured while updating the theme {0}: {1}", themeId, exception.Message).Text);
Services.Notifier.Error(T("An error occured while updating the theme {0}: {1}", themeId, exception.Message));