Java Code Examples for org.jboss.logging.Logger

The following examples show how to use org.jboss.logging.Logger. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
private void checkCertificatesValidity(KeyStore keyStore) throws KeyStoreException {
    if (ROOT_LOGGER.isEnabled(Logger.Level.WARN)) {
        Enumeration<String> aliases = keyStore.aliases();
        while (aliases.hasMoreElements()) {
            String alias = aliases.nextElement();
            Certificate certificate = keyStore.getCertificate(alias);
            if (certificate != null && certificate instanceof X509Certificate) {
                try {
                    ((X509Certificate) certificate).checkValidity();
                } catch (CertificateExpiredException | CertificateNotYetValidException e) {
                    ROOT_LOGGER.certificateNotValid(alias, e);
                }
            }
        }
    }
}
 
Example 2
Source Project: quarkus   Source File: DisabledJMXInitiator.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public JmxService initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
    if (ConfigurationHelper.getBoolean(AvailableSettings.JMX_ENABLED, configurationValues, false)) {
        Logger.getLogger(DisabledJMXInitiator.class)
                .warn("Enabling JMX is not allowed in Quarkus: forcefully disabled. Ignoring property:"
                        + AvailableSettings.JMX_ENABLED);
    }
    return DisabledJmxServiceImpl.INSTANCE;
}
 
Example 3
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void unableToCloseStreamError(IOException arg0) {
    super.log.logf(FQCN, Logger.Level.ERROR, (Throwable)null, this.unableToCloseStreamError$str(), arg0);
}
 
Example 4
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void collectionsRemoved(final long arg0) {
    super.log.logf(FQCN, (org.jboss.logging.Logger.Level.INFO), null, collectionsRemoved$str(), arg0);
}
 
Example 5
Source Project: activemq-artemis   Source File: AuditLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 601030, value = "User {0} is getting incoming interceptor class names on target resource: {1} {2}", format = Message.Format.MESSAGE_FORMAT)
void getIncomingInterceptorClassNames(String user, Object source, Object... args);
 
Example 6
Source Project: activemq-artemis   Source File: AuditLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 601145, value = "User {0} is getting message expiry scan period on target resource: {1} {2}", format = Message.Format.MESSAGE_FORMAT)
void getMessageExpiryScanPeriod(String user, Object source, Object... args);
 
Example 7
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void tooManyInExpressions(final String arg0, final int arg1, final String arg2, final int arg3) {
    super.log.logf(FQCN, (org.jboss.logging.Logger.Level.WARN), null, tooManyInExpressions$str(), arg0, arg1, arg2, arg3);
}
 
Example 8
Source Project: activemq-artemis   Source File: ActiveMQServerLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 221007, value = "Server is now live", format = Message.Format.MESSAGE_FORMAT)
void serverIsLive();
 
Example 9
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void resolvedSqlTypeDescriptorForDifferentSqlCode(final String arg0, final String arg1, final String arg2, final String arg3) {
    super.log.logf(FQCN, (org.jboss.logging.Logger.Level.WARN), null, resolvedSqlTypeDescriptorForDifferentSqlCode$str(), arg0, arg1, arg2, arg3);
}
 
Example 10
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void usingAstQueryTranslatorFactory() {
    super.log.logf(FQCN, (org.jboss.logging.Logger.Level.INFO), null, usingAstQueryTranslatorFactory$str());
}
 
Example 11
Source Project: activemq-artemis   Source File: ActiveMQJMSClientLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 134004, value = "Message Listener failed to process message", format = Message.Format.MESSAGE_FORMAT)
void errorProcessingMessage(@Cause Throwable e);
 
Example 12
Source Project: hawkular-alerts   Source File: AlertingLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.WARN)
@Message(id = 220018, value = "Deleting all definitions on tenantId [%s] before import.")
void warningDeleteDefinitionsTenant(String tenantId);
 
Example 13
Source Project: activemq-artemis   Source File: ActiveMQServerLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 221075, value = "Usage of wildcardRoutingEnabled configuration property is deprecated, please use wildCardConfiguration.enabled instead", format = Message.Format.MESSAGE_FORMAT)
void deprecatedWildcardRoutingEnabled();
 
Example 14
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void unableToCloseOutputFile(final String arg0, final java.io.IOException arg1) {
    super.log.logf(FQCN, (org.jboss.logging.Logger.Level.ERROR), (arg1), unableToCloseOutputFile$str(), arg0);
}
 
Example 15
Source Project: smallrye-open-api   Source File: DataObjectLogging.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.DEBUG)
@Message(id = 6003, value = "Adding child node to path: %s")
void addingChildNode(ClassInfo classInfo);
 
Example 16
Source Project: activemq-artemis   Source File: ActiveMQClientLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.DEBUG)
@Message(id = 212029,
   value = "Closing a Server Locator left open. Please make sure you close all Server Locators explicitly before letting them go out of scope! {0}",
   format = Message.Format.MESSAGE_FORMAT)
void serverLocatorNotClosed(@Cause Exception e, int identity);
 
Example 17
Source Project: smallrye-reactive-messaging   Source File: AMQPLogging.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 16213, value = "Connection with AMQP broker established")
void connectionEstablished();
 
Example 18
Source Project: quarkus   Source File: JBossNettyLoggerFactory.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public boolean isWarnEnabled() {
    return log.isEnabled(Logger.Level.WARN);
}
 
Example 19
Source Project: activemq-artemis   Source File: ActiveMQWebLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.WARN)
@Message(id = 244003, value = "Temporary file not deleted on shutdown: {0}", format = Message.Format.MESSAGE_FORMAT)
void tmpFileNotDeleted(File tmpdir);
 
Example 20
Source Project: activemq-artemis   Source File: ActiveMQBootstrapLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 104000, value = "Failed to delete file {0}", format = Message.Format.MESSAGE_FORMAT)
void errorDeletingFile(String name);
 
Example 21
Source Project: hawkular-alerts   Source File: AlertingLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 220015, value = "Hawkular Alerts deployed in distributed mode")
void infoPartitionManagerEnabled();
 
Example 22
Source Project: thorntail   Source File: DeployerMessages.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.DEBUG)
@Message(id = 3, value = "Deploying %s")
void deploying(String deploymentName);
 
Example 23
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void unableToLogSqlWarnings(SQLException arg0) {
    super.log.logf(FQCN, Logger.Level.WARN, (Throwable)null, this.unableToLogSqlWarnings$str(), arg0);
}
 
Example 24
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void unableToCloseJar(String arg0) {
    super.log.logf(FQCN, Logger.Level.ERROR, (Throwable)null, this.unableToCloseJar$str(), arg0);
}
 
Example 25
Source Project: activemq-artemis   Source File: ActiveMQServerLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222071, value = "Interrupted while waiting for stomp heartbeat to die", format = Message.Format.MESSAGE_FORMAT)
void errorOnStompHeartBeat(@Cause InterruptedException e);
 
Example 26
Source Project: activemq-artemis   Source File: ActiveMQServerLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222118, value = "unable to start Bridge {0}", format = Message.Format.MESSAGE_FORMAT)
void unableToStartBridge(@Cause Exception e, SimpleString name);
 
Example 27
Source Project: smallrye-jwt   Source File: PrincipalLogging.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.DEBUG)
@Message(id = 8028, value = "Invalid token 'kid' header: %s, expected: %s")
void invalidTokenKidHeader(String kidHeaderName, String expectedName);
 
Example 28
Source Project: J2Cache   Source File: J2CacheMessageLogger_$logger.java    License: Apache License 2.0 4 votes vote down vote up
public final void usingReflectionOptimizer() {
    super.log.logf(FQCN, Logger.Level.INFO, (Throwable)null, this.usingReflectionOptimizer$str(), new Object[0]);
}
 
Example 29
Source Project: activemq-artemis   Source File: ActiveMQServerLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.INFO)
@Message(id = 221029, value = "stopped bridge {0}", format = Message.Format.MESSAGE_FORMAT)
void bridgeStopped(SimpleString name);
 
Example 30
Source Project: activemq-artemis   Source File: ActiveMQServerLogger.java    License: Apache License 2.0 4 votes vote down vote up
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 224020, value = "Failed to handle create queue", format = Message.Format.MESSAGE_FORMAT)
void failedToHandleCreateQueue(@Cause Exception e);