Refactor log context name

mutual-tls-auth
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.device.mgt.extensions.logger.spi.EntgraLogger;
import io.entgra.notification.logger.DeviceLogContext; 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.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
@ -46,7 +46,7 @@ import java.util.List;
*/ */
public class NotificationManagementServiceImpl implements NotificationManagementService { 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(); DeviceLogContext.Builder deviceLogContexBuilder = new DeviceLogContext.Builder();
private NotificationDAO notificationDAO; private NotificationDAO notificationDAO;

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

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

Loading…
Cancel
Save