org.apache.log4j.xml.XMLWatchdog类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(121)

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

XMLWatchdog介绍

暂无

代码示例

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

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

/**
  Read the configuration file <code>configFilename</code> if it
  exists. Moreover, a thread will be created that will periodically
  check if <code>configFilename</code> has been created or
  modified. The period is determined by the <code>delay</code>
  argument. If a change or file creation is detected, then
  <code>configFilename</code> is read to configure log4j.  
  @param configFilename A log4j configuration file in XML format.
  @param delay The delay in milliseconds to wait between each check.
*/
static
public
void configureAndWatch(String configFilename, long delay) {
 XMLWatchdog xdog = new XMLWatchdog(configFilename);
 xdog.setDelay(delay);
 xdog.start();
}

相关文章