Examples of SyslogConfiguration


Examples of org.wso2.carbon.logging.config.SyslogConfiguration

        port = syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.SYSLOG_PORT);
        realm = syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.REALM);
        userName = syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.USER_NAME);
        password = decriptPassword(syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.PASSWORD));
      } else {
        SyslogConfiguration config = SyslogConfigManager.loadSyslogConfiguration();
        url = config.getSyslogHostURL();
        port = config.getPort();
        realm = config.getRealm();
        userName = config.getUserName();
        password = config.getPassword();
      }
   
      return new SyslogData(url, port, realm, userName, password);
    } catch (Exception e) {
      log.error("Unable get SyslogData ", e);
View Full Code Here

Examples of org.wso2.carbon.logging.config.SyslogConfiguration

  private SyslogData getSyslogData() throws Exception {
    if (isSyslogConfiguredInRegistry()) {
      return LoggingUtil.getSyslogData();
    } else {
      SyslogData syslogData = new SyslogData();
      SyslogConfiguration syslogConfig = SyslogConfigManager.loadSyslogConfiguration();
      syslogData.setUrl(syslogConfig.getSyslogHostURL());
      syslogData.setPort(syslogConfig.getPort());
      syslogData.setRealm(syslogConfig.getRealm());
      syslogData.setUserName(syslogConfig.getUserName());
      syslogData.setPassword(syslogConfig.getPassword());
      return syslogData;
    }
  }
View Full Code Here

Examples of org.wso2.carbon.logging.config.SyslogConfiguration

      return syslogData;
    }
  }

  private boolean isSyslogOn() {
    SyslogConfiguration syslogConfig = SyslogConfigManager.loadSyslogConfiguration();
    return syslogConfig.isSyslogOn();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.