anchor.diff:  						}
   					]
   				});
  +
  +				var toggleDbLogger = function toggleDbLogger() {
  +					if (Ext.getCmp('dbLogStatusLabel').text === 'On'){
  +						var what = 'off';
  +						var url = '/openstorefront/api/v1/service/application/dblogger/false';
  +					}
  +					else {
  +						var what = 'on';
  +						var url = '/openstorefront/api/v1/service/application/dblogger/true';
  +					}
  +					
  +					Ext.Ajax.request({
  +						url: url,
  +						method: 'PUT',
  +						success: function(response, opt){
  +							Ext.toast('Successfuly turned DB logger ' + what, '', 'tr');
  +							updateDbLoggerStatus();
  +						},
  +						failure: function(response, opt){
  +							Ext.toast('Failed to turn DB logger ' + what, '', 'tr');
  +							updateDbLoggerStatus();
  +						}
  +					});
  +				};
  +
  +				var updateDbLoggerStatus = function updateDbLoggerStatus(reload) {
  +					var label = Ext.getCmp('dbLogStatusLabel');
  +					var button = Ext.getCmp('dbLoggerButton');
  +					reload = typeof reload !== 'undefined' ? reload : true;
  +
  +					if (reload) {
  +						sysConfigPropStore.load();	
  +					}
  +
  +					var data = sysConfigPropStore.getData();
  +					var find = data.find('code', 'dblog.on');
  +					var status = false;
  +					if (find) { 
  +						status = find.data.description;
  +					}
  +
  +					if (status === 'true') {
  +						label.setText('On');
  +						label.setStyle({color: 'green'});
  +						button.setText('Disable');
  +					}
  +					else {
  +						label.setText('Off');
  +						label.setStyle({color: 'red'});
  +						button.setText('Enable');
  +					}
  +
  +					};
  +
  +
   
   				var loggerStore = Ext.create('Ext.data.Store', {
   					id: 'loggerStore',
  
positive.code: 									iconCls: 'fa fa-2x fa-refresh',
  									handler: function () {
  										logStore.load();
  									}
  								},
  								{
  
negative.code: 					proxy: {
  						type: 'ajax',
  						url: '/openstorefront/api/v1/service/application/configproperties'
  					},
  					listeners: {
  						load: function () {
  							updateDbLoggerStatus(false);
  						}
  					}
  				});
  
  