org.apache.log4j.LogManager.exists()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.apache.log4j.LogManager.exists()方法的一些代码示例,展示了LogManager.exists()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogManager.exists()方法的具体详情如下:
包路径:org.apache.log4j.LogManager
类名称:LogManager
方法名:exists

LogManager.exists介绍

暂无

代码示例

代码示例来源:origin: log4j/log4j

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: log4j/log4j

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: apache/log4j

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: apache/log4j

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: pentaho/mondrian

int index = arg.indexOf('=');
if (index == -1) {
  Logger logger = LogManager.exists(arg);
  if (logger == null) {
    buf.append("Bad log name: ");

代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: apache-log4j/log4j

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: org.apache.activemq/activemq-all

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: org.apache.logging.log4j/log4j-1.2-api

@Override
public Logger exists(final String name) {
  return LogManager.exists(name);
}

代码示例来源:origin: org.ops4j.pax.logging/pax-logging-service

/**
 * If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returns
 * <code>null</code>.
 * 
 * @deprecated Please use {@link LogManager#exists} instead.
 * @since 0.8.5
 */
public static Logger exists(String name) {
  return LogManager.exists(name);
}

代码示例来源:origin: org.apache/log4j

/**
  If the named category exists (in the default hierarchy) then it
  returns a reference to the category, otherwise it returns
  <code>null</code>.
  @deprecated Please use {@link LogManager#exists} instead.
  @since 0.8.5 */
public
static
Logger exists(String name) {
 return LogManager.exists(name);
}

代码示例来源:origin: ops4j/org.ops4j.pax.logging

/**
 * If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returns
 * <code>null</code>.
 * 
 * @deprecated Please use {@link LogManager#exists} instead.
 * @since 0.8.5
 */
public static Logger exists(String name) {
  return LogManager.exists(name);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.log4j

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: org.apache/log4j

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: org.apache.activemq/activemq-all

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: apache-log4j/log4j

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager

public
ObjectName addLoggerMBean(String name) {
 Logger cat = LogManager.exists(name);
 if(cat != null) {
  return addLoggerMBean(cat);
 } else {
  return null;
 }
}

相关文章