Refactor log context name

scopeMapAPILayer
Pramila Niroshan 2 years ago
parent 4005a9e8cb
commit 7441e57d36

@ -20,7 +20,7 @@ package org.wso2.carbon.device.mgt.core.notification.mgt;
import io.entgra.device.mgt.extensions.logger.spi.EntgraLogger;
import io.entgra.notification.logger.DeviceLogContext;
import io.entgra.notification.logger.impl.EntgraLoggerImpl;
import io.entgra.notification.logger.impl.EntgraDeviceLoggerImpl;
import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
@ -46,7 +46,7 @@ import java.util.List;
*/
public class NotificationManagementServiceImpl implements NotificationManagementService {
private static final EntgraLogger log = new EntgraLoggerImpl(NotificationManagementServiceImpl.class);
private static final EntgraLogger log = new EntgraDeviceLoggerImpl(NotificationManagementServiceImpl.class);
DeviceLogContext.Builder deviceLogContexBuilder = new DeviceLogContext.Builder();
private NotificationDAO notificationDAO;

@ -27,11 +27,11 @@ import org.apache.commons.logging.LogFactory;
import org.apache.log4j.MDC;
public class EntgraLoggerImpl implements EntgraLogger {
public class EntgraDeviceLoggerImpl implements EntgraLogger {
private static Log log = null;
public EntgraLoggerImpl(Class<?> clazz) {
public EntgraDeviceLoggerImpl(Class<?> clazz) {
log = LogFactory.getLog(clazz);
}

@ -23,7 +23,7 @@
<parent>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>carbon-devicemgt</artifactId>
<version>5.0.17-SNAPSHOT</version>
<version>5.0.21-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Loading…
Cancel
Save