private void configure() throws NullLocationException, FormatterInitException {
  String Interval=lmanager.getProperty(LogConstants.LOGSIGN_PERIODINSECONDS);
  if ((Interval == null) || (Interval.length() == 0)) {
    signInterval=LogConstants.LOGSIGN_PERIODINSECONDS_DEFAULT * 1000;
  }
 else {
    signInterval=Long.parseLong(Interval) * 1000;
  }
  String strMaxFileSize=lmanager.getProperty(LogConstants.MAX_FILE_SIZE);
  if ((strMaxFileSize == null) || (strMaxFileSize.length() == 0)) {
    maxFileSize=0;
  }
 else {
    maxFileSize=Integer.parseInt(strMaxFileSize);
  }
  location=lmanager.getProperty(LogConstants.LOG_PROP_PREFIX + "." + logName+ ".location");
  if (location == null) {
    location=lmanager.getProperty(LogConstants.LOG_LOCATION);
  }
  if ((location == null) || (location.length() == 0)) {
    throw new NullLocationException("Location Not Specified");
  }
  if (!location.endsWith(File.separator)) {
    location+=File.separator;
  }
  String filesPerKeyStoreString=lmanager.getProperty(LogConstants.FILES_PER_KEYSTORE);
  if ((filesPerKeyStoreString == null) || (filesPerKeyStoreString.length() == 0)) {
    if (Debug.warningEnabled()) {
      Debug.warning(logName + ":Archiver: could not get the files " + "per keystore str setting it to 1");
    }
    filesPerKeyStoreString="5";
  }
  filesPerKeyStore=Integer.parseInt(filesPerKeyStoreString);
  if (Debug.messageEnabled()) {
    Debug.message(logName + ":Files per Key Store = " + filesPerKeyStoreString);
  }
  String archiverClassString=lmanager.getProperty(LogConstants.ARCHIVER);
  if ((archiverClassString == null) || (archiverClassString.length() == 0)) {
    throw new NullLocationException("Archvier class not specified");
  }
  archiverClass=archiverClassString;
}

private void configure ( ) throws NullLocationException , FormatterInitException { String Interval = lmanager . getProperty ( LogConstants . LOGSIGN_PERIODINSECONDS ) ; if ( ( Interval == null ) || ( Interval . length ( ) == 0 ) ) { signInterval = LogConstants . LOGSIGN_PERIODINSECONDS_DEFAULT * 1000 ; } else { signInterval = Long . parseLong ( Interval ) * 1000 ; } String strMaxFileSize = lmanager . getProperty ( LogConstants . MAX_FILE_SIZE ) ; if ( ( strMaxFileSize == null ) || ( strMaxFileSize . length ( ) == 0 ) ) { maxFileSize = 0 ; } else { maxFileSize = Integer . parseInt ( strMaxFileSize ) ; } location = lmanager . getProperty ( LogConstants . LOG_PROP_PREFIX + "." + logName + ".location" ) ; if ( location == null ) { location = lmanager . getProperty ( LogConstants . LOG_LOCATION ) ; } if ( ( location == null ) || ( location . length ( ) == 0 ) ) { throw new NullLocationException ( "Location Not Specified" ) ; } if ( ! location . endsWith ( File . separator ) ) { location += File . separator ; } String filesPerKeyStoreString = lmanager . getProperty ( LogConstants . FILES_PER_KEYSTORE ) ; if ( ( filesPerKeyStoreString == null ) || ( filesPerKeyStoreString . length ( ) == 0 ) ) { if ( Debug . warningEnabled ( ) ) { Debug . warning ( logName + ":Archiver: could not get the files " + "per keystore str setting it to 1" ) ; } filesPerKeyStoreString = "5" ; } filesPerKeyStore = Integer . parseInt ( filesPerKeyStoreString ) ; if ( Debug . messageEnabled ( ) ) { Debug . message ( logName + ":Files per Key Store = " + filesPerKeyStoreString ) ; } String archiverClassString = lmanager . getProperty ( LogConstants . ARCHIVER ) ; if ( ( archiverClassString == null ) || ( archiverClassString . length ( ) == 0 ) ) { throw new NullLocationException ( "Archvier class not specified" ) ; } archiverClass = archiverClassString ; }
this method is used for getting the properties from logmanager and setting the private variables count , maxfilesize etc .
