com.dell.cpsd.hal.data.provider.client.log.HDPCLoggingManager Maven / Gradle / Ivy
/**
* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
* Dell EMC Confidential/Proprietary Information
*/
package com.dell.cpsd.hal.data.provider.client.log;
import com.dell.cpsd.common.logging.ILogger;
import com.dell.cpsd.common.logging.LoggingManager;
import com.dell.cpsd.hal.data.provider.client.i18n.HDPCMessageBundle;
import java.util.ResourceBundle;
/**
* This is the logging manager for the service client.
*
*
* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
* Dell EMC Confidential/Proprietary Information
*
*
* @since 1.0
*/
public class HDPCLoggingManager
{
/*
* The message resource bundle used for logging.
*/
private static ResourceBundle MESSAGE_BUNDLE = ResourceBundle.getBundle(HDPCMessageBundle.class.getName());
private static LoggingManager LOGGING_MANAGER = new LoggingManager();
/**
* HDPCLoggingManager constructor.
*
* @since 1.0
*/
public HDPCLoggingManager()
{
super();
}
/**
* This returns an ILogger
using the name of the specified class as the logger name.
*
* @param clazz
* The Class
used for the logger.
*
* @return The ILogger
with the name of the class.
*
* @throws IllegalArgumentException
* Thrown if the class is null.
*
* @since 1.0
*/
public static ILogger getLogger(Class clazz)
{
return LOGGING_MANAGER.getLogger(clazz, MESSAGE_BUNDLE);
}
/**
* This returns an ILogger
using the specified name as the logger name.
*
* @param name
* The name of the logger.
*
* @return The ILogger
with the specified name.
*
* @since 1.0
*/
public static ILogger getLogger(String name)
{
return LOGGING_MANAGER.getLogger(name, MESSAGE_BUNDLE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy