![JAR search and dependency download from the Maven repository](/logo.png)
com.dell.cpsd.hdp.capability.registry.client.log.HDCRLoggingManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hdp-capability-registry-client Show documentation
Show all versions of hdp-capability-registry-client Show documentation
This repository contains the source code for the capability registry API.
This API exposes the interface through which a consumer or provider interacts with the capability registry.
/**
* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
* Dell EMC Confidential/Proprietary Information
*/
package com.dell.cpsd.hdp.capability.registry.client.log;
import java.util.ResourceBundle;
import com.dell.cpsd.common.logging.ILogger;
import com.dell.cpsd.common.logging.LoggingManager;
import com.dell.cpsd.hdp.capability.registry.client.i18n.HDCRMessageBundle;
/**
* 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 HDCRLoggingManager
{
/*
* The message resource bundle used for logging.
*/
private static ResourceBundle MESSAGE_BUNDLE = ResourceBundle.getBundle(HDCRMessageBundle.class.getName());
private static LoggingManager LOGGING_MANAGER = new LoggingManager();
/**
* HDCRLoggingManager constructor.
*
* @since 1.0
*/
public HDCRLoggingManager()
{
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