public CambriaBaseClient ( Collection<String> hosts, String clientSignature ) throws MalformedURLException { super(ConnectionType.HTTP, hosts, CambriaConstants.kStdCambriaServicePort, clientSignature, CacheUse.NONE, 1, 1L, TimeUnit.MILLISECONDS, 32, 32, 600000); fLog = EELFManager.getInstance().getLogger(this.getClass().getName()); }
/** * Loads the logging configuration from the specified stream. * * @param stream * The stream that contains the logging configuration document. * @param delayedLogging */ private static void loadLoggingConfiguration(final InputStream stream, final ArrayList<String> delayedLogging) { ILoggerFactory loggerFactory = LoggerFactory.getILoggerFactory(); if (loggerFactory instanceof LoggerContext) { configureLogback((LoggerContext) loggerFactory, stream); } else { delayedLogging.add((EELFResourceManager.format(EELFMsgs.UNSUPPORTED_LOGGING_FRAMEWORK))); } }
delayedLogging.add(msg); if (scanAndLoadLoggingConfiguration(path, filename, delayedLogging)) { return; filename = System.getProperty(PROPERTY_LOGGING_FILE_NAME, "logback.xml"); if (scanAndLoadLoggingConfiguration(path, filename, delayedLogging)) { return; if (stream != null) { delayedLogging.add(EELFResourceManager.getMessage(EELFMsgs.LOADING_DEFAULT_LOG_CONFIGURATION,"com/att/eelf/logback.xml")); loadLoggingConfiguration(stream, delayedLogging); } else { delayedLogging.add(EELFResourceManager.format(EELFMsgs.NO_LOG_CONFIGURATION));
LoggerContext loggerContext = (LoggerContext) factory; if (loggerContext.exists(GENERAL_LOGGER_NAME) == null) { initializeLogging(delayedLogging); } else { delayedLogging.add(EELFResourceManager.getMessage(EELFMsgs.LOGGING_ALREADY_INITIALIZED)); switch (severity) { case 'D': getApplicationLogger().debug(message); break; case 'I': getApplicationLogger().info(message); break; case 'W': getApplicationLogger().warn(message); break; case 'E': getApplicationLogger().error(message);
delayedLogging.add(String.format("EELF000I Loading logging configuration from %s", file.getAbsolutePath())); loadLoggingConfiguration(stream, delayedLogging); } catch (FileNotFoundException e) { delayedLogging.add(EELFResourceManager.format(e));
protected URI storeUri; private final EELFLogger logger = EELFManager.getInstance().getLogger(AbstractArtifactProcessor.class);
private static final EELFLogger log = EELFManager.getInstance().getLogger(DMaaPOriginalUebAuthenticator.class); @Override