List of usage examples for java.util.logging Level FINEST
Level FINEST
To view the source code for java.util.logging Level FINEST.
Click Source Link
From source file:org.apache.cxf.dosgi.topologymanager.ListenerHookImpl.java
public void added(Collection listeners) { LOG.log(Level.FINE, "ListenerHookImpl: added() {0}", listeners); for (Object li : listeners) { ListenerInfo listenerInfo = (ListenerInfo) li; LOG.log(Level.FINEST, "*** Filter: {0}", listenerInfo.getFilter()); String className = getClassNameFromFilter(listenerInfo.getFilter()); if (listenerInfo.getBundleContext().getBundle().equals(bctx.getBundle())) { LOG.finest("ListenerHookImpl: skipping request from myself"); continue; }//from w ww .jav a 2 s . com if (listenerInfo.getFilter() == null) { LOG.finest("ListenerHookImpl: skipping empty filter"); continue; } if (isClassExcluded(className)) { LOG.log(Level.FINE, "ListenerHookImpl: skipping import request for excluded class [{0}]", className); continue; } tm.addServiceInterest(listenerInfo.getFilter()); } }
From source file:org.hawkular.apm.server.jms.trace.SourceInfoCacheMDB.java
@Override public void onMessage(Message message) { if (log.isLoggable(Level.FINEST)) { log.finest("Message received=" + message); }/*from w w w . j av a 2 s. co m*/ try { String tenantId = message.getStringProperty("tenant"); String data = ((TextMessage) message).getText(); List<Trace> items = mapper.readValue(data, typeRef); List<SourceInfo> sourceInfoList = SourceInfoUtil.getSourceInfo(tenantId, items); sourceInfoCache.store(tenantId, sourceInfoList); } catch (JMSException | IOException | CacheException | RetryAttemptException e) { log.log(Level.SEVERE, "Failed to handle message", e); } }
From source file:datasphere.catalog.DSCatalog.java
/** * setup log formatting/*from w ww. j a v a 2 s . c om*/ */ public void setupLogging() { handler.setFormatter(new DSLogFormatter()); handler.setLevel(Level.FINEST); logger.addHandler(handler); logger.setUseParentHandlers(false); logger.setLevel(Level.FINEST); }
From source file:edu.uci.ics.hyracks.api.client.impl.JobActivityGraphBuilder.java
@Override public void addSourceEdge(int operatorInputIndex, IActivity task, int taskInputIndex) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("Adding source edge: " + task.getActivityId() + ":" + operatorInputIndex + " -> " + task.getActivityId() + ":" + taskInputIndex); }/*from w ww .ja v a2s .co m*/ IOperatorDescriptor op = activityOperatorMap.get(task.getActivityId()); IConnectorDescriptor conn = jobSpec.getInputConnectorDescriptor(op, operatorInputIndex); insertIntoIndexedMap(jag.getActivityInputMap(), task.getActivityId(), taskInputIndex, conn); connectorConsumerMap.put(conn.getConnectorId(), Pair.of(task, taskInputIndex)); }
From source file:de.hofuniversity.iisys.neo4j.websock.query.encoding.safe.TSafeJsonQueryHandler.java
@Override public WebsockQuery decode(String arg0) throws DecodeException { WebsockQuery query = null;//from w w w. j a v a 2 s .c o m try { final JSONObject obj = new JSONObject(arg0); if (fDebug) { fTotalBytesIn += arg0.getBytes().length; fLogger.log(Level.FINEST, "received JSON message: " + arg0.getBytes().length + " bytes\n" + "total bytes received: " + fTotalBytesIn); } query = JsonConverter.fromJson(obj); } catch (JSONException e) { e.printStackTrace(); throw new DecodeException(arg0, "failed to decode JSON", e); } return query; }
From source file:com.marvelution.hudson.plugins.jirareporter.JIRAChangeLogAnnotator.java
/** * {@inheritDoc}/*from www .ja v a 2 s. co m*/ */ @Override public void annotate(AbstractBuild<?, ?> build, Entry change, MarkupText text) { if (!JIRASite.hasSite(build)) { // The project of this build is not configured with the JIRABuildResultReportNotifier so skip // changelog annotation return; } final Map<String, RemoteIssue> knownIssues = new HashMap<String, RemoteIssue>(); final JIRASite site = JIRASite.getSite(build); if (site.checkIssueExistence) { // Checking for existing Issue Keys, loop through the message and get all the existing issues with one call JIRAClient client = null; try { client = site.createClient(); List<String> keys = new ArrayList<String>(); Matcher matcher = site.getIssuePattern().matcher(text.getText()); while (matcher.find()) { keys.add(matcher.group(0)); } if (!keys.isEmpty()) { String jqlQuery = "issuekey in (" + StringUtils.join(keys, ",") + ")"; LOGGER.log(Level.FINER, "Searching with JQL: " + jqlQuery); for (RemoteIssue issue : client.getIssuesFromJqlSearch(jqlQuery, keys.size())) { LOGGER.log(Level.FINEST, "Found: " + issue.getKey()); knownIssues.put(issue.getKey().toUpperCase(), issue); } } } catch (Exception e) { LOGGER.log(Level.FINER, "Unable to check the existence of one or more issues"); } finally { if (client != null) { client.logout(); } } } for (SubText token : text.findTokens(site.getIssuePattern())) { if (site.checkIssueExistence) { // Check is the issue exists before annotating it // Checked issue keys are stored in uppercase final String issueKey = token.group(0).toUpperCase(); if (knownIssues.containsKey(issueKey)) { RemoteIssue issue = knownIssues.get(issueKey); token.surroundWith(String.format("<a href='%sbrowse/%s' tooltip='%s'>", site.url, issue.getKey(), Util.escape(issue.getSummary())), "</a>"); } else { LOGGER.log(Level.FINER, "Key " + token.group(0) + " was not found, skipping it"); } } else { // Issue existence check disabled, just assume its there token.surroundWith(String.format("<a href='%sbrowse/%s'>", site.url, token.group(0)), "</a>"); } } }
From source file:edu.usu.sdl.openstorefront.service.manager.JobManager.java
private static void initSystemJobs() throws SchedulerException { log.log(Level.FINEST, "Setting up Import Jobs..."); addImportJob(new LookupImporter(), FileSystemManager.IMPORT_LOOKUP_DIR); addImportJob(new AttributeImporter(), FileSystemManager.IMPORT_ATTRIBUTE_DIR); addImportJob(new ArticleImporter(), FileSystemManager.IMPORT_ARTICLE_DIR); addImportJob(new HighlightImporter(), FileSystemManager.IMPORT_HIGHLIGHT_DIR); addImportJob(new ComponentImporter(), FileSystemManager.IMPORT_COMPONENT_DIR); addCleanUpErrorsJob();//w w w. j a v a2 s .c om addTrackingCleanUpJob(); addNotificationJob(); addRecentChangeNotifyJob(); addScheduledReportJob(); addComponentUpdate(); addComponentIntegrationJobs(); addUserProfileSyncjob(); }
From source file:alma.acs.logging.adapters.JacORBFilter.java
/** * Discards less useful or misleading Jacorb logs based on the message. * <p>//from w ww . j av a 2 s .c o m * TODO-: to improve performance, we could instead match file and line, but then would have to update * that information with the next jacorb code change. * The implementation already minimizes string comparison by checking only those messages that can occur at the given log level. * <p> * TODO: Add repeat guard based on the message, e.g. using MultipleRepeatGuard from jacsutil. */ public boolean isLoggable(LogRecord record) { String message = record.getMessage(); boolean isLoggable = true; if (record.getLevel().intValue() == Level.FINE.intValue()) { // map from FINE to FINEST if (message.startsWith("POA ") && (message.endsWith("shutdown is in progress") || message.endsWith("destruction is apparent") || message.endsWith("clear up the queue...") || message.endsWith("... done") || message.endsWith("stop the request controller") || message.endsWith("etherialize all servants ..."))) { record.setLevel(Level.FINEST); } else if (message.startsWith("get_policy_overrides returns") || message.startsWith("read GIOP message of size") || message.startsWith("wrote GIOP message of size")) { // From ACS unit tests it seems that this message is totally harmless, // caused by a Corba stub calling org.jacorb.orb.Delegate#getRelativeRoundtripTimeout() // and asking for the RELATIVE_RT_TIMEOUT_POLICY_TYPE policy. // We do not fully discard the log though because it may have other causes at the AOS. record.setLevel(Level.FINEST); // // Enable the following 2 lines to investigate for http://jira.alma.cl/browse/COMP-8302, to see where all these logs come from // String stackTrace = org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(new Throwable()); // System.out.println("Hack for COMP-8302 debugging: 'get_policy_overrides returns' message logged with trace " + stackTrace); } // from FINE to discard else isLoggable = !(message.endsWith("_invoke: queuing request") || message.indexOf("is queued (queue size:") > 0 || message.endsWith("trying to get a RequestProcessor") || message.endsWith("waiting for queue") || message.endsWith("with request processing") || // for "starts...", "ends..." message.endsWith("invokeOperation on servant (stream based)") || message.endsWith("reset a previous completion call") || message.startsWith("Delegate.getReference") || message.startsWith("Received CodeSetContext. Using") || message.startsWith("ClientConnectionManager: releasing ClientGIOPConnection") || message.startsWith("Delegate released!") || message.endsWith(": streamClosed()") // findPOA: impl_name mismatch ); } else if (record.getLevel().intValue() == Level.INFO.intValue()) { // from INFO to CONFIG if (message.indexOf("(C) The JacORB project") > 0 || message.startsWith("Received CloseConnection on ClientGIOPConnection") || message.startsWith("prepare ORB for shutdown") || message.startsWith("Client-side TCP transport to") || message.startsWith("ORB going down...") || message.startsWith("ORB run") || // also "ORB run, exit" message.equals("ORB shutdown complete") || (message.startsWith("POA ") && (message.endsWith("destroyed"))) || message.startsWith("Opened new server-side TCP/IP")) { record.setLevel(Level.CONFIG); } // from INFO to FINEST else if (message.startsWith("Connected to ") || message.startsWith("Closed server-side transport to") || (message.startsWith("POA ") && (message.endsWith("up the queue ...") || message.endsWith("... done"))) || message.startsWith("Retrying to connect to") || message.startsWith("ClientConnectionManager: created new ClientGIOPConnection") || message.startsWith("ClientConnectionManager: found ClientGIOPConnection") || message.startsWith("Initialising ORB with ID") || message.startsWith("Set default native char codeset to") || message.startsWith("Set default native wchar codeset to") || message.equals("Listener exiting") || message.equals("ConsumerTie exited")) { record.setLevel(Level.FINEST); } // from INFO to stdout shortcut else if ((message.startsWith("ClientGIOPConnection to ") || message.startsWith("ServerGIOPConnection to ")) && message.contains(" BufferDump:\n") || message.startsWith("sendMessages(): ")) { // The jacorb dumps from org.jacorb.orb.etf.StreamConnectionBase.flush() // and org.jacorb.orb.giop.GIOPConnection.getMessage() are very special. // They get enabled via properties 'jacorb.debug.dump_outgoing_messages' // and 'jacorb.debug.dump_incoming_messages' and logged as INFO. // If they are enabled, we still want to see them only in the local logs // (otherwise there may be even "positive feedback" leading to log explosion). // A cleaner concept would be to only flag this LogRecord as "log only locally", // return "isLoggable = true" and leave the rest to the local and remote log handlers. // The fact that we are dealing with a generic LogRecord (not AcsLogRecord) makes this // option also ugly though (LogParameterUtil tricks), and thus we just print and drop // the log right away here. String timeStamp = IsoDateFormat.formatDate(new Date(record.getMillis())); System.out.println(timeStamp + " " + message); isLoggable = false; } // from INFO to discard else isLoggable = !(message.startsWith("oid: ") || message.startsWith("InterceptorManager started with") || message.startsWith("Using server ID (")); } else if (record.getLevel().intValue() == Level.WARNING.intValue()) { // from WARNING to CONFIG // if (message.indexOf("") > 0) { // record.setLevel(Level.CONFIG); // } // // from WARNING to FINEST // else if (message.startsWith("")) { // record.setLevel(Level.FINEST); // } // from WARNING to discard // else isLoggable = !(message.startsWith("no adapter activator exists for") // client tries to find remote poa locally and then complains if not there... ); } else if (record.getLevel().intValue() == Level.SEVERE.intValue()) { // HSO 07-02-19: thought this adapter activator crap was logged as warning, but now it showed up in jcont test as ACS-level "Emergency", which is JDK-SEVERE isLoggable = !(message.startsWith("no adapter activator exists for") // client tries to find remote poa locally and then complains if not there... ); } // filter by possibly modified log level if (isLoggable && record.getLevel().intValue() < this.logLevel) { isLoggable = false; } // if (!isLoggable) { // System.out.println("dropping JacORB message " + message + " with Level " + record.getLevel().getName()); // } // Remove non-ascii chars from the log message, which seems to occur only in logs coming from jacorb, // see http://jira.alma.cl/browse/COMP-3243 // For simplicity we blank all non-ascii-7-printable chars except newline and tab, // at the low risk of erroneously blanking more sophisticated (Umlaut etc) chars that jacorb may send us. // If that turns out to be the case, and the encoding turns out as unicode, then see http://en.wikipedia.org/wiki/C0_and_C1_control_codes if (isLoggable && message != null) { String message2 = null; int mlen = message.length(); for (int i = 0; i < mlen; i++) { char ch = message.charAt(i); if ((ch < 32 || ch >= 127) && ch != '\n' && ch != '\t') { // got a bad char if (message2 == null) { // copy the leading good chars only if needed, to improve performance message2 = message.substring(0, i); } // blank the bad char message2 += '#'; } else if (message2 != null) { message2 += ch; } } if (message2 != null) { record.setMessage(message2); } } return isLoggable; }
From source file:org.jaqpot.core.service.filter.JacksonJsonProvider.java
public JacksonJsonProvider() { mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); mapper.enable(SerializationFeature.INDENT_OUTPUT); mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES); /*/* www . j a va2 s.c o m*/ * The mapper must use only getters and setters and not * private getters/setters and/or fields. */ mapper.setVisibilityChecker( VisibilityChecker.Std.defaultInstance().withFieldVisibility(JsonAutoDetect.Visibility.NONE) .withGetterVisibility(JsonAutoDetect.Visibility.PUBLIC_ONLY) .withSetterVisibility(JsonAutoDetect.Visibility.PUBLIC_ONLY) .withCreatorVisibility(JsonAutoDetect.Visibility.PUBLIC_ONLY)); super.setMapper(mapper); LOG.log(Level.FINEST, "JacksonJsonProvider - constructed!"); }
From source file:com.mobilehelix.appserver.auth.JCIFS_NTLMScheme.java
@Override public String authenticate(Credentials credentials, HttpMethod method) throws AuthenticationException { LOG.log(Level.FINEST, "Enter JCIFS_NTLMScheme.authenticate(Credentials, HttpMethod)"); if (this.state == UNINITIATED) { throw new IllegalStateException("NTLM authentication process has not been initiated"); }/*www. j a va2 s . c om*/ NTCredentials ntcredentials = null; try { ntcredentials = (NTCredentials) credentials; } catch (ClassCastException e) { throw new InvalidCredentialsException( "Credentials cannot be used for NTLM authentication: " + credentials.getClass().getName()); } NTLM ntlm = new NTLM(); ntlm.setCredentialCharset(method.getParams().getCredentialCharset()); String response = null; if (this.state == INITIATED || this.state == FAILED) { response = ntlm.generateType1Msg(ntcredentials.getHost(), ntcredentials.getDomain()); this.state = TYPE1_MSG_GENERATED; } else { response = ntlm.generateType3Msg(ntcredentials.getUserName(), ntcredentials.getPassword(), ntcredentials.getHost(), ntcredentials.getDomain(), this.ntlmchallenge); this.state = TYPE3_MSG_GENERATED; } return "NTLM " + response; }