Give each project a single logger
This commit is contained in:
parent
3712e1ad7e
commit
af24178145
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.service.jdbc.connections.internal;
|
||||
|
||||
import static org.jboss.logging.Logger.Level.INFO;
|
||||
import static org.jboss.logging.Logger.Level.WARN;
|
||||
import java.util.Properties;
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.LogMessage;
|
||||
import org.jboss.logging.Message;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface C3P0Logger extends BasicLogger {
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Autocommit mode: %s" )
|
||||
void autoCommitMode( boolean autocommit );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Both hibernate-style property '%s' and c3p0-style property '%s' have been set in hibernate.properties. "
|
||||
+ "Hibernate-style property '%s' will be used and c3p0-style property '%s' will be ignored!" )
|
||||
void bothHibernateAndC3p0StylesSet( String hibernateStyle,
|
||||
String c3p0Style,
|
||||
String hibernateStyle2,
|
||||
String c3p0Style2 );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "C3P0 using driver: %s at URL: %s" )
|
||||
void c3p0UsingDriver( String jdbcDriverClass,
|
||||
String jdbcUrl );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Connection properties: %s" )
|
||||
void connectionProperties( Properties maskOut );
|
||||
|
||||
@Message( value = "JDBC Driver class not found: %s" )
|
||||
String jdbcDriverNotFound( String jdbcDriverClass );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "No JDBC Driver class was specified by property %s" )
|
||||
void jdbcDriverNotSpecified( String driver );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "JDBC isolation level: %s" )
|
||||
void jdbcIsolationLevel( String isolationLevelToString );
|
||||
|
||||
@Message( value = "Could not destroy C3P0 connection pool" )
|
||||
Object unableToDestroyC3p0ConnectionPool();
|
||||
|
||||
@Message( value = "Could not instantiate C3P0 connection pool" )
|
||||
Object unableToInstantiateC3p0ConnectionPool();
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate;
|
||||
|
||||
import org.jboss.logging.BasicLogger;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface aTestLogger extends BasicLogger {
|
||||
|
||||
public static final aTestLogger LOG = org.jboss.logging.Logger.getMessageLogger(aTestLogger.class,
|
||||
aTestLogger.class.getPackage().getName());
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.cache;
|
||||
|
||||
import static org.jboss.logging.Logger.Level.WARN;
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.LogMessage;
|
||||
import org.jboss.logging.Message;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface EhCacheLogger extends BasicLogger {
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Attempt to restart an already started EhCacheProvider. Use sessionFactory.close() between repeated calls to "
|
||||
+ "buildSessionFactory. Using previously created EhCacheProvider. If this behaviour is required, consider "
|
||||
+ "using net.sf.ehcache.hibernate.SingletonEhCacheProvider." )
|
||||
void attemptToRestartAlreadyStartedEhCacheProvider();
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Could not find configuration [%s]; using defaults." )
|
||||
void unableToFindConfiguration( String name );
|
||||
}
|
|
@ -0,0 +1,172 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.ejb;
|
||||
|
||||
import static org.jboss.logging.Logger.Level.ERROR;
|
||||
import static org.jboss.logging.Logger.Level.INFO;
|
||||
import static org.jboss.logging.Logger.Level.WARN;
|
||||
import java.net.URL;
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.LogMessage;
|
||||
import org.jboss.logging.Message;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface EntityManagerLogger extends BasicLogger {
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Bound Ejb3Configuration to JNDI name: %s" )
|
||||
void boundEjb3ConfigurationToJndiName( String name );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Calling joinTransaction() on a non JTA EntityManager" )
|
||||
void callingJoinTransactionOnNonJtaEntityManager();
|
||||
|
||||
@LogMessage( level = ERROR )
|
||||
@Message( value = "Container is providing a null PersistenceUnitRootUrl: discovery impossible" )
|
||||
void containerProvidingNullPersistenceUnitRootUrl();
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Defining %s=true ignored in HEM" )
|
||||
void definingFlushBeforeCompletionIgnoredInHem( String flushBeforeCompletion );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Ejb3Configuration name: %s" )
|
||||
void ejb3ConfigurationName( String name );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "An Ejb3Configuration was renamed from name: %s" )
|
||||
void ejb3ConfigurationRenamedFromName( String name );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "An Ejb3Configuration was unbound from name: %s" )
|
||||
void ejb3ConfigurationUnboundFromName( String name );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Entity Manager closed by someone else (%s must not be used)" )
|
||||
void entityManagerClosedBySomeoneElse( String autoCloseSession );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Hibernate EntityManager %s" )
|
||||
void entityManagerVersion( String versionString );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "%s %s found" )
|
||||
void exceptionHeaderFound( String exceptionHeader,
|
||||
String metaInfOrmXml );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "%s No %s found" )
|
||||
void exceptionHeaderNotFound( String exceptionHeader,
|
||||
String metaInfOrmXml );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Exploded jar file does not exist (ignored): %s" )
|
||||
void explodedJarDoesNotExist( URL jarUrl );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Exploded jar file not a directory (ignored): %s" )
|
||||
void explodedJarNotDirectory( URL jarUrl );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Ignoring unrecognized query hint [%s]" )
|
||||
void ignoringUnrecognizedQueryHint( String hintName );
|
||||
|
||||
@LogMessage( level = ERROR )
|
||||
@Message( value = "Illegal argument on static metamodel field injection : %s#%s; expected type : %s; encountered type : %s" )
|
||||
void illegalArgumentOnStaticMetamodelFieldInjection( String name,
|
||||
String name2,
|
||||
String name3,
|
||||
String name4 );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "InitialContext did not implement EventContext" )
|
||||
void initialContextDoesNotImplementEventContext();
|
||||
|
||||
@Message( value = "Invalid JNDI name: %s" )
|
||||
Object invalidJndiName( String name );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "%s = false break the EJB3 specification" )
|
||||
void jdbcAutoCommitFalseBreaksEjb3Spec( String autocommit );
|
||||
|
||||
@Message( value = "Malformed URL: %s" )
|
||||
Object malformedUrl( URL jarUrl );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Overriding %s is dangerous, this might break the EJB3 specification implementation" )
|
||||
void overridingTransactionStrategyDangerous( String transactionStrategy );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Parameter position [%s] occurred as both JPA and Hibernate positional parameter" )
|
||||
void parameterPositionOccurredAsBothJpaAndHibernatePositionalParameter( Integer position );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Persistence provider caller does not implement the EJB3 spec correctly."
|
||||
+ "PersistenceUnitInfo.getNewTempClassLoader() is null." )
|
||||
void persistenceProviderCallerDoesNotImplementEjb3SpecCorrectly();
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Processing PersistenceUnitInfo [\n\tname: %s\n\t...]" )
|
||||
void processingPersistenceUnitInfoName( String persistenceUnitName );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Required a different provider: %s" )
|
||||
void requiredDifferentProvider( String provider );
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Transaction not available on beforeCompletion: assuming valid" )
|
||||
void transactionNotAvailableOnBeforeCompletion();
|
||||
|
||||
@Message( value = "Naming exception occurred accessing Ejb3Configuration" )
|
||||
Object unableToAccessEjb3Configuration();
|
||||
|
||||
@Message( value = "Could not bind Ejb3Configuration to JNDI" )
|
||||
Object unableToBindEjb3ConfigurationToJndi();
|
||||
|
||||
@Message( value = "Could not close input stream" )
|
||||
Object unableToCloseInputStream();
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Unable to determine lock mode value : %s -> %s" )
|
||||
void unableToDetermineLockModeValue( String hintName,
|
||||
Object value );
|
||||
|
||||
@Message( value = "Unable to find file (ignored): %s" )
|
||||
Object unableToFindFile( URL jarUrl );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Could not find any META-INF/persistence.xml file in the classpath" )
|
||||
void unableToFindPersistenceXmlInClasspath();
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "Cannot join transaction: do not override %s" )
|
||||
void unableToJoinTransaction( String transactionStrategy );
|
||||
|
||||
@LogMessage( level = ERROR )
|
||||
@Message( value = "Unable to locate static metamodel field : %s#%s" )
|
||||
void unableToLocateStaticMetamodelField( String name,
|
||||
String name2 );
|
||||
|
||||
@Message( value = "Unable to mark for rollback on PersistenceException: " )
|
||||
Object unableToMarkForRollbackOnPersistenceException();
|
||||
|
||||
@Message( value = "Unable to mark for rollback on TransientObjectException: " )
|
||||
Object unableToMarkForRollbackOnTransientObjectException();
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Unable to resolve mapping file [%s]" )
|
||||
void unableToResolveMappingFile( String xmlFile );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Using provided datasource" )
|
||||
void usingProvidedDataSource();
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.ejb;
|
||||
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface TestEntityManagerLogger extends BasicLogger {
|
||||
|
||||
public static final TestEntityManagerLogger LOG = org.jboss.logging.Logger.getMessageLogger(TestEntityManagerLogger.class,
|
||||
TestEntityManagerLogger.class.getPackage().getName());
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.envers;
|
||||
|
||||
import static org.jboss.logging.Logger.Level.WARN;
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.LogMessage;
|
||||
import org.jboss.logging.Message;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface EnversLogger extends BasicLogger {
|
||||
|
||||
@LogMessage( level = WARN )
|
||||
@Message( value = "ValidTimeAuditStrategy is deprecated, please use ValidityAuditStrategy instead" )
|
||||
void validTimeAuditStrategyDeprecated();
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.envers;
|
||||
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface TestEnversLogger extends BasicLogger {
|
||||
|
||||
public static final TestEnversLogger LOG = org.jboss.logging.Logger.getMessageLogger(TestEnversLogger.class,
|
||||
TestEnversLogger.class.getPackage().getName());
|
||||
}
|
21
hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/TestInfinispanLogger.java
vendored
Normal file
21
hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/TestInfinispanLogger.java
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.test.cache.infinispan;
|
||||
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface TestInfinispanLogger extends BasicLogger {
|
||||
|
||||
public static final TestInfinispanLogger LOG = org.jboss.logging.Logger.getMessageLogger(TestInfinispanLogger.class,
|
||||
TestInfinispanLogger.class.getPackage().getName());
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
* JBoss, Home of Professional Open Source.
|
||||
*
|
||||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
|
||||
*
|
||||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
|
||||
*/
|
||||
package org.hibernate.service.jdbc.connections.internal;
|
||||
|
||||
import static org.jboss.logging.Logger.Level.INFO;
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.LogMessage;
|
||||
import org.jboss.logging.Message;
|
||||
import org.jboss.logging.MessageLogger;
|
||||
|
||||
/**
|
||||
* Interface defining messages that may be logged by the outer class
|
||||
*/
|
||||
@MessageLogger
|
||||
public interface ProxoolLogger extends BasicLogger {
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Autocommit mode: %s" )
|
||||
void autoCommmitMode( boolean autocommit );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Configuring Proxool Provider to use pool alias: %s" )
|
||||
void configuringProxoolProviderToUsePoolAlias( String proxoolAlias );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Configuring Proxool Provider using existing pool in memory: %s" )
|
||||
void configuringProxoolProviderUsingExistingPool( String proxoolAlias );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Configuring Proxool Provider using JAXPConfigurator: %s" )
|
||||
void configuringProxoolProviderUsingJaxpConfigurator( String jaxpFile );
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "Configuring Proxool Provider using Properties File: %s" )
|
||||
void configuringProxoolProviderUsingPropertiesFile( String proxoolAlias );
|
||||
|
||||
@Message( value = "Exception occured when closing the Proxool pool" )
|
||||
String exceptionClosingProxoolPool();
|
||||
|
||||
@LogMessage( level = INFO )
|
||||
@Message( value = "JDBC isolation level: %s" )
|
||||
void jdbcIsolationLevel( String isolationLevelToString );
|
||||
|
||||
@Message( value = "Cannot configure Proxool Provider to use an existing in memory pool without the %s property set." )
|
||||
String unableToConfigureProxoolProviderToUseExistingInMemoryPool( String proxoolPoolAlias );
|
||||
|
||||
@Message( value = "Cannot configure Proxool Provider to use JAXP without the %s property set." )
|
||||
String unableToConfigureProxoolProviderToUseJaxp( String proxoolPoolAlias );
|
||||
|
||||
@Message( value = "Cannot configure Proxool Provider to use Properties File without the %s property set." )
|
||||
String unableToConfigureProxoolProviderToUsePropertiesFile( String proxoolPoolAlias );
|
||||
|
||||
@Message( value = "Proxool Provider unable to load JAXP configurator file: %s" )
|
||||
String unableToLoadJaxpConfiguratorFile( String jaxpFile );
|
||||
|
||||
@Message( value = "Proxool Provider unable to load Property configurator file: %s" )
|
||||
String unableToLoadPropertyConfiguratorFile( String propFile );
|
||||
}
|
Loading…
Reference in New Issue