Tabnine Logo
PropertyConfigurator.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.log4j.PropertyConfigurator
constructor

Best Java code snippets using org.apache.log4j.PropertyConfigurator.<init> (Showing top 20 results out of 315)

origin: log4j/log4j

/**
 */
static
public
void configure(String configFilename) {
 new PropertyConfigurator().doConfigure(configFilename,
           LogManager.getLoggerRepository());
}
origin: log4j/log4j

 /**
 Read configuration options from url <code>configURL</code>.

 @since 0.8.2
*/
public
static
void configure(java.net.URL configURL) {
 new PropertyConfigurator().doConfigure(configURL,
          LogManager.getLoggerRepository());
}

origin: log4j/log4j

/**
Reads configuration options from an InputStream.

@since 1.2.17
*/
public
static
void configure(InputStream inputStream) {
new PropertyConfigurator().doConfigure(inputStream,
         LogManager.getLoggerRepository());
}

origin: log4j/log4j

 /**
   Call {@link PropertyConfigurator#configure(String)} with the
   <code>filename</code> to reconfigure log4j. */
 public
 void doOnChange() {
  new PropertyConfigurator().doConfigure(filename,
            LogManager.getLoggerRepository());
 }
}
origin: log4j/log4j

/**
  Read configuration options from <code>properties</code>.
  See {@link #doConfigure(String, LoggerRepository)} for the expected format.
*/
static
public
void configure(Properties properties) {
 new PropertyConfigurator().doConfigure(properties,
           LogManager.getLoggerRepository());
}
origin: log4j/log4j

 LoggerRepository  genericHierarchy() {
  if(genericHierarchy == null) {
   File f = new File(dir, GENERIC+CONFIG_FILE_EXT);
   if(f.exists()) {
  genericHierarchy = new Hierarchy(new RootLogger(Level.DEBUG));
  new PropertyConfigurator().doConfigure(f.getAbsolutePath(), genericHierarchy);
   } else {
  cat.warn("Could not find config file ["+f+
     "]. Will use the default hierarchy.");
  genericHierarchy = LogManager.getLoggerRepository();
   }
  }
  return genericHierarchy;
 }
}
origin: log4j/log4j

LoggerRepository configureHierarchy(InetAddress inetAddress) {
 cat.info("Locating configuration file for "+inetAddress);
 // We assume that the toSting method of InetAddress returns is in
 // the format hostname/d1.d2.d3.d4 e.g. torino/192.168.1.1
 String s = inetAddress.toString();
 int i = s.indexOf("/");
 if(i == -1) {
  cat.warn("Could not parse the inetAddress ["+inetAddress+
     "]. Using default hierarchy.");
  return genericHierarchy();
 } else {
  String key = s.substring(0, i);
  File configFile = new File(dir, key+CONFIG_FILE_EXT);
  if(configFile.exists()) {
 Hierarchy h = new Hierarchy(new RootLogger(Level.DEBUG));
 hierarchyMap.put(inetAddress, h);
 new PropertyConfigurator().doConfigure(configFile.getAbsolutePath(), h);
 return h;
  } else {
 cat.warn("Could not find config file ["+configFile+"].");
 return genericHierarchy();
  }
 }
}
origin: Alluxio/alluxio

  level.toString() + "," + AlluxioLogServerProcess.LOGSERVER_CLIENT_LOGGER_APPENDER_NAME);
properties.setProperty(ROOT_LOGGER_APPENDER_FILE_PROPERTY_KEY, logFilePath);
new PropertyConfigurator().doConfigure(properties, clientHierarchy);
return clientHierarchy;
origin: log4j/log4j

configurator = new PropertyConfigurator();
origin: log4j/log4j

configurator = new PropertyConfigurator();
origin: camunda/camunda-bpm-platform

 static void init(String portStr, String configFile) {
  try {
   port = Integer.parseInt(portStr);
  } catch(java.lang.NumberFormatException e) {
   e.printStackTrace();
   usage("Could not interpret port number ["+ portStr +"].");
  }
    if(configFile.endsWith(".xml")) {
   new DOMConfigurator().configure(configFile);
  } else {
   new PropertyConfigurator().configure(configFile);
  }
 }
}
origin: camunda/camunda-bpm-platform

/**
  Read configuration options from url <code>configURL</code>.
  @since 0.8.2
 */
public
static
void configure(java.net.URL configURL) {
 new PropertyConfigurator().doConfigure(configURL,
           LogManager.getLoggerRepository());
}
origin: camunda/camunda-bpm-platform

/**
  Read configuration options from <code>properties</code>.
  See {@link #doConfigure(String, LoggerRepository)} for the expected format.
*/
static
public
void configure(Properties properties) {
 new PropertyConfigurator().doConfigure(properties,
           LogManager.getLoggerRepository());
}
origin: camunda/camunda-bpm-platform

 /**
   Call {@link PropertyConfigurator#configure(String)} with the
   <code>filename</code> to reconfigure log4j. */
 public
 void doOnChange() {
  new PropertyConfigurator().doConfigure(filename,
            LogManager.getLoggerRepository());
 }
}
origin: camunda/camunda-bpm-platform

/**
 */
static
public
void configure(String configFilename) {
 new PropertyConfigurator().doConfigure(configFilename,
           LogManager.getLoggerRepository());
}
origin: apache/log4j

 /**
 Read configuration options from url <code>configURL</code>.

 @since 0.8.2
*/
public
static
void configure(java.net.URL configURL) {
 new PropertyConfigurator().doConfigure(configURL,
          LogManager.getLoggerRepository());
}

origin: apache/log4j

/**
 */
static
public
void configure(String configFilename) {
 new PropertyConfigurator().doConfigure(configFilename,
           LogManager.getLoggerRepository());
}
origin: apache/log4j

/**
Reads configuration options from an InputStream.

@since 1.2.17
*/
public
static
void configure(InputStream inputStream) {
new PropertyConfigurator().doConfigure(inputStream,
         LogManager.getLoggerRepository());
}

origin: apache/log4j

 /**
   Call {@link PropertyConfigurator#configure(String)} with the
   <code>filename</code> to reconfigure log4j. */
 public
 void doOnChange() {
  new PropertyConfigurator().doConfigure(filename,
            LogManager.getLoggerRepository());
 }
}
origin: apache/log4j

/**
  Read configuration options from <code>properties</code>.
  See {@link #doConfigure(String, LoggerRepository)} for the expected format.
*/
static
public
void configure(Properties properties) {
 new PropertyConfigurator().doConfigure(properties,
           LogManager.getLoggerRepository());
}
org.apache.log4jPropertyConfigurator<init>

Popular methods of PropertyConfigurator

  • configure
    Read configuration options from properties. See #doConfigure(String,LoggerRepository) for the expect
  • configureAndWatch
    Read the configuration file configFilename if it exists. Moreover, a thread will be created that wil
  • doConfigure
    Read configuration options from properties. See #doConfigure(String,LoggerRepository) for the expect
  • configureLoggerFactory
    Check the provided Properties object for a org.apache.log4j.spi.LoggerFactoryentry specified by #LOG
  • configureRootCategory
  • parseAdditivityForLogger
    Parse the additivity option for a non-root category.
  • parseAppender
  • parseCategory
    This method must work for the root category as well.
  • parseCatsAndRenderers
    Parse non-root elements, such non-root categories and renderers.
  • registryGet
  • registryPut
  • parseAppenderFilters
  • registryPut,
  • parseAppenderFilters,
  • parseErrorHandler

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFileChooser (javax.swing)
  • JLabel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now